From 9a446f3e329351d82db7f1a47e8c71f89c270538 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 7 Jun 2005 11:05:58 +0000 Subject: [PATCH] we can now receive the gc subject --- src/common/connection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 4ef69a25c..317d32bd5 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -198,8 +198,6 @@ class Connection: def _messageCB(self, con, msg): """Called when we receive a message""" msgtxt = msg.getBody() - if not msg.getTag('body'): #no - return mtype = msg.getType() tim = msg.getTimestamp() tim = time.strptime(tim, '%Y%m%dT%H:%M:%S') @@ -230,9 +228,13 @@ class Connection: if subject: self.dispatch('GC_SUBJECT', (str(msg.getFrom()), subject)) else: + if not msg.getTag('body'): #no + return self.dispatch('GC_MSG', (str(msg.getFrom()), msgtxt, tim)) gajim.logger.write('gc', msgtxt, str(msg.getFrom()), tim = tim) else: + if not msg.getTag('body'): #no + return gajim.logger.write('incoming', msgtxt, str(msg.getFrom()), tim = tim) self.dispatch('MSG', (str(msg.getFrom()), msgtxt, tim, encrypted)) # END messageCB