Fix response to non-sudoer usage
This commit is contained in:
parent
fa4519ffcc
commit
1e5aca5d74
4
bot.py
4
bot.py
|
@ -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()
|
||||
|
|
Reference in New Issue