fix issue where help command crashes bot
This commit is contained in:
parent
0a66ed4fb8
commit
08a98febca
@ -154,7 +154,7 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||
c.quit("See y'all later!")
|
||||
quit()
|
||||
elif cmd == '!help':
|
||||
helplist = sorted([i for i in self.cmds])
|
||||
helplist = sorted([i for i in pinhook.plugin.cmds])
|
||||
msg = ', '.join(helplist)
|
||||
c.privmsg(chan, 'Available commands: {}'.format(msg))
|
||||
elif cmd == '!reload' and nick in self.ops:
|
||||
|
Loading…
x
Reference in New Issue
Block a user