Fix response to non-sudoer usage

This commit is contained in:
Robert Miles 2018-07-21 08:04:52 -04:00
parent fa4519ffcc
commit 1e5aca5d74
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -38,8 +38,8 @@ class AuditBot(teambot.Handler):
bbj.thread_reply(opts.get("thread_id"),opts.get("format").format(time.strftime("%Y-%m-%d %H:%M:%S"),nick,log(self._bot.bot_nick,text)))
# say_log(repr(r))
else:
say_log("{} is auditing \"{}\" but is not a sudoer!".format((nick,log(self._bot.bot_nick,text)),"X")
self.conn.privmsg(target,nick+": you aren't a sudoer!")
say_log("{} is auditing \"{}\" but is not a sudoer!".format(nick,log(self._bot.bot_nick,text)),"X")
self.conn.privmsg(target,"{}: you aren't a sudoer!".format(nick))
if __name__=="__main__":
channels = "#sudoers".split()