X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sid%2Fsid.py;h=a62c7e46fd14fd7c0d61875cad45f8b650da802b;hb=07a099b92d103e09a082c5a7887dfd62acb5fb8b;hp=d412ac4ad65d362b0427cdafb35a2f6485e8e7bd;hpb=16a1747dce0c01b1659cb5e287254bcd434000ed;p=sid.git 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: