X-Git-Url: http://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Fsid.py;h=a62c7e46fd14fd7c0d61875cad45f8b650da802b;hp=d412ac4ad65d362b0427cdafb35a2f6485e8e7bd;hb=07a099b92d103e09a082c5a7887dfd62acb5fb8b;hpb=382e54a3933a477e70af74eb6af45c9ad4c669a3 diff --git a/sid/sid.py b/sid/sid.py index d412ac4..a62c7e4 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -123,9 +123,11 @@ class MUCBot(slixmpp.ClientXMPP): body = msg['body'].strip() if not body.startswith(MUCBot.prefix): return - if msg['from'] not in self.__seen: - self.log.warning('Will not handle message from unseen jid: %s', msg['from']) - #return + self.log.debug(msg['from']) + if msg['from'] not in self.__seen and msg['type'] == 'chat': + self.log.warning('Will not handle direct message' + 'from unseen jid: %s', msg['from']) + return args = body[1:].split() cmd = args.pop(0) if cmd not in self.commands: