fix for internal commands

pull/74/head v1.9.2
Mallory Hancock 2019-10-14 12:57:38 -07:00
parent 9faa59a41d
commit 8c71f7bae0
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
__version__ = '1.9.1'
__version__ = '1.9.2'

View File

@ -127,12 +127,15 @@ class Bot(irc.bot.SingleServerIRCBot):
return None
def call_internal_commands(self, channel, nick, cmd, text, arg, c):
if not cmd.startswith(self.cmd_prefix):
return None
else:
cmd = cmd[len(self.cmd_prefix):]
output = None
if nick in self.ops:
op = True
else:
op = False
cmd = cmd.lstrip(self.cmd_prefix)
if cmd == 'join' and op:
try:
c.join(*arg.split())