Fix crash on unauthenticated admin command

This commit is contained in:
Robert Miles 2018-11-15 17:24:34 -05:00
parent 3d27e1b65c
commit 16c8052ee8
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -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)