print warning when we receive a presence from an invalid JID

This commit is contained in:
Yann Leboulanger 2011-09-30 10:10:36 +02:00
parent 7216c7b058
commit 241325488e
1 changed files with 1 additions and 0 deletions

View File

@ -710,6 +710,7 @@ PresenceHelperEvent):
try:
self.get_jid_resource()
except Exception:
log.warn('Invalid JID: %s, ignoring it' % self.stanza.getFrom())
return
jid_list = gajim.contacts.get_jid_list(self.conn.name)
self.timestamp = None