do not print empty message (fix #301)

This commit is contained in:
Yann Leboulanger 2005-05-20 11:23:08 +00:00
parent 894e38cc7f
commit 2377437112
1 changed files with 3 additions and 1 deletions

View File

@ -173,11 +173,13 @@ class Connection:
def _messageCB(self, con, msg):
"""Called when we recieve a message"""
msgtxt = msg.getBody()
if not msgtxt: # empty message
return
mtype = msg.getType()
tim = msg.getTimestamp()
tim = time.strptime(tim, '%Y%m%dT%H:%M:%S')
tim = time.localtime(timegm(tim))
msgtxt = msg.getBody()
xtags = msg.getTags('x')
encTag = None
decmsg = ''