From ccca9332c68e92777f5ad101966449940b37dc9c Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Tue, 3 Jun 2008 01:13:30 +0000 Subject: [PATCH] fix undefined 'session' variable in _messageCB --- src/common/connection_handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 9707c09b0..e87a2fde2 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1740,7 +1740,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, '\x09\x20\x20\x09\x20', '') msgtxt = msgtxt.replace('\x20\x20\x09' \ '\x09\x20\x20\x09\x20', '') - elif mtype != 'groupchat': + + if mtype != 'groupchat': session = self.get_or_create_session(frm, thread_id) if thread_id and not session.received_thread_id: