add back in a session start handler
darcs-hash:20080827135422-84dde-857d6e980e18803186d080a60eea60f1362bb348.gz
This commit is contained in:
parent
b69b206c97
commit
9bdc7f8ec7
|
@ -98,14 +98,19 @@ class XMPPDaemon {
|
||||||
|
|
||||||
$this->conn->addEventHandler('message', 'handle_message', $this);
|
$this->conn->addEventHandler('message', 'handle_message', $this);
|
||||||
$this->conn->addEventHandler('presence', 'handle_presence', $this);
|
$this->conn->addEventHandler('presence', 'handle_presence', $this);
|
||||||
while(!$this->conn->isDisconnected()) {
|
$this->conn->addEventHandler('session_start', 'handle_session_start', $this);
|
||||||
|
|
||||||
|
while(!$this->conn->isDisconnected()) {
|
||||||
$this->conn->processTime(10);
|
$this->conn->processTime(10);
|
||||||
$this->broadcast_queue();
|
$this->broadcast_queue();
|
||||||
$this->confirmation_queue();
|
$this->confirmation_queue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handle_session_start(&$pl) {
|
||||||
|
$this->conn->getRoster();
|
||||||
|
$this->set_status("Send me a message to post a notice");
|
||||||
|
}
|
||||||
|
|
||||||
function get_user($from) {
|
function get_user($from) {
|
||||||
$user = User::staticGet('jabber', jabber_normalize_jid($from));
|
$user = User::staticGet('jabber', jabber_normalize_jid($from));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user