forked from tildeverse/sotdbot
Fix crash on unauthenticated admin command
This commit is contained in:
parent
3d27e1b65c
commit
16c8052ee8
2
bot.py
2
bot.py
|
@ -30,7 +30,7 @@ class SOTDBot(teambot.Handler,teambot.CommandHandlerMixin):
|
||||||
|
|
||||||
def do_admin(self,*args):
|
def do_admin(self,*args):
|
||||||
if self.sourcenick!=self.botop:
|
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
|
return
|
||||||
args = list(args)
|
args = list(args)
|
||||||
subcmd = args.pop(0)
|
subcmd = args.pop(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user