From 16c8052ee8588fe42bb729fbd18789e146edb99b Mon Sep 17 00:00:00 2001 From: khuxkm Date: Thu, 15 Nov 2018 17:24:34 -0500 Subject: [PATCH] Fix crash on unauthenticated admin command --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index af14d62..b2d491b 100644 --- a/bot.py +++ b/bot.py @@ -30,7 +30,7 @@ class SOTDBot(teambot.Handler,teambot.CommandHandlerMixin): def do_admin(self,*args): if self.sourcenick!=self.botop: - self.say(target,self.sourcenick+": You can't tell me what to do!") + self.say(self.target,self.sourcenick+": You can't tell me what to do!") return args = list(args) subcmd = args.pop(0)