~stefanor/ibid/timeout-344882

« back to all changes in this revision

Viewing changes to ibid/source/jabber.py

Ignore Jabber chat state notifications and other non-message chat stanzas.
https://code.launchpad.net/~mgorven/ibid/jabber-none-message-342745/+merge/4543

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
                self.parent.log.info(u"Ignoring message because sender is not in accept_domains")
78
78
                return
79
79
 
 
80
        if message.body is None:
 
81
            self.parent.log.info(u'Ignoring empty message')
 
82
            return
 
83
 
80
84
        event = Event(self.parent.name, u'message')
81
85
        event.message = unicode(message.body)
82
86
        event.sender['connection'] = message['from']