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
|
return None
|
||||||
|
|
||||||
def call_internal_commands(self, channel, nick, cmd, text, arg, c):
|
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
|
output = None
|
||||||
if nick in self.ops:
|
if nick in self.ops:
|
||||||
op = True
|
op = True
|
||||||
else:
|
else:
|
||||||
op = False
|
op = False
|
||||||
cmd = cmd.lstrip(self.cmd_prefix)
|
|
||||||
if cmd == 'join' and op:
|
if cmd == 'join' and op:
|
||||||
try:
|
try:
|
||||||
c.join(*arg.split())
|
c.join(*arg.split())
|
||||||
|
|
Loading…
Reference in New Issue