diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-19 19:38:33 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-19 19:38:33 +0000 |
commit | e656e5924bef38d5e69fffca6e1d46c7bed69139 (patch) | |
tree | 34d5a397997a4d1bd0fbd0de660d7dc7b77ce287 /src/connection.py | |
parent | 93351156a122dd7e374778c1c838b5c4c1dda83d (diff) | |
download | poezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.tar.gz poezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.tar.bz2 poezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.tar.xz poezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.zip |
fixes some stuff. Also fixed #1617
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py index f24403a8..62f17bb5 100644 --- a/src/connection.py +++ b/src/connection.py @@ -100,7 +100,7 @@ class Connection(threading.Thread): password = config.get('password', '') jid = config.get('jid', '') auth = self.client.auth(jid_get_node(jid), password, "salut") - return auth + return True def register_handlers(self): """ @@ -127,6 +127,8 @@ class Connection(threading.Thread): """ handles the presence messages """ + from common import debug + debug('%s\n' % presence) if not connection: return if presence.getType() == 'error': @@ -166,6 +168,7 @@ class Connection(threading.Thread): self.handler.emit('room-message', stanza=message) else: self.handler.emit('private-message', stanza=message) + raise xmpp.protocol.NodeProcessed def process(self, timeout=10): |