parent
9faa59a41d
commit
8c71f7bae0
|
@ -1 +1 @@
|
|||
__version__ = '1.9.1'
|
||||
__version__ = '1.9.2'
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue