X-Git-Url: http://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Fsid.py;h=dd768c17c1f929664020c19564d1347b124f0c06;hp=24f543f6e60d6ed3cdd7efbd86f24b3e3d03bb3c;hb=1d5d7c371bdecaf42cd6785f8c8ab152f0eaec48;hpb=8050b8698ff1f6294abceb8b022a4aecdbe8375e diff --git a/sid/sid.py b/sid/sid.py index 24f543f..dd768c1 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -92,12 +92,11 @@ class MUCBot(sleekxmpp.ClientXMPP): body = msg['body'] mucfrom = msg['mucnic'] if msg['mucnick'] == self.nick: - self.log.debug('ignoring message from me') return if not body.startswith(MUCBot.prefix): return args = body[1:].split() - cmd= args.pop(0) + cmd = args.pop(0) if cmd not in self.commands: return self.log.debug('cmd: {0}'.format(cmd)) @@ -108,7 +107,6 @@ class MUCBot(sleekxmpp.ClientXMPP): except Exception as err: reply = traceback.format_exc(err) self.log.exception('An error occurred processing: {0}: {1}'.format(body, reply)) - self.log.debug(reply) self.send_message(mto=msg['from'].bare, mbody=reply, mtype='groupchat') def start(self, event): @@ -158,7 +156,6 @@ class MUCBot(sleekxmpp.ClientXMPP): """Returns a help string listing available options. Automatically assigned to the "help" command.""" - self.log.info(args) help_cmd = ('Type {}help '.format(self.prefix) + ' to get more info about that specific command.') if not args: @@ -178,8 +175,6 @@ class MUCBot(sleekxmpp.ClientXMPP): usage = usage + '\n\n' + help_cmd text = '{}\n\n{}'.format(description, usage) else: - self.log.debug(args[0]) - self.log.debug(args[0] in self.commands.keys()) if args[0] in self.commands.keys(): text = self.commands[args[0]].__doc__.strip() or 'undocumented' else: