fix undefined 'session' variable in _messageCB

This commit is contained in:
Brendan Taylor 2008-06-03 01:13:30 +00:00
parent dc89b61d37
commit ccca9332c6
1 changed files with 2 additions and 1 deletions

View File

@ -1740,7 +1740,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
'\x09\x20\x20\x09\x20', '') '\x09\x20\x20\x09\x20', '')
msgtxt = msgtxt.replace('\x20\x20\x09' \ msgtxt = msgtxt.replace('\x20\x20\x09' \
'\x09\x20\x20\x09\x20', '') '\x09\x20\x20\x09\x20', '')
elif mtype != 'groupchat':
if mtype != 'groupchat':
session = self.get_or_create_session(frm, thread_id) session = self.get_or_create_session(frm, thread_id)
if thread_id and not session.received_thread_id: if thread_id and not session.received_thread_id: