XMPP daemon that doesn't eat messages - note change to XMPPHP as well (Ticket #551)

darcs-hash:20080826200057-f6e2c-fb9a88251d034824218d20b3fefcde96ddaef827.gz
This commit is contained in:
CiaranG
2008-08-26 16:00:57 -04:00
parent 28ed510854
commit b6d67b06d4
2 changed files with 5 additions and 27 deletions

View File

@@ -242,7 +242,7 @@ class XMPPHP_XMLStream {
* @param string $obj
*/
public function addEventHandler($name, $pointer, $obj) {
$this->eventhandlers[] = array($name, $pointer, $obj);
$this->eventhanders[] = array($name, $pointer, $obj);
}
/**
@@ -521,6 +521,7 @@ class XMPPHP_XMLStream {
if($handler[2] === null) {
$handler[2] = $this;
}
$this->log->log("Calling {$handler[1]}", XMPPHP_Log::LEVEL_DEBUG);
$handler[2]->$handler[1]($payload);
}
}