fix error preventing bot from starting
This commit is contained in:
parent
d2bed1bf72
commit
710607fdca
@ -44,7 +44,7 @@ def on_privmsg(cli, rawnick, chan, msg, notice = False):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if botconfig.IGNORE_HIDDEN_COMMANDS and chan[0] in prefixes.keys():
|
if botconfig.IGNORE_HIDDEN_COMMANDS and chan[0] in prefixes:
|
||||||
return
|
return
|
||||||
|
|
||||||
if (notice and ((chan != botconfig.NICK and not botconfig.ALLOW_NOTICE_COMMANDS) or
|
if (notice and ((chan != botconfig.NICK and not botconfig.ALLOW_NOTICE_COMMANDS) or
|
||||||
@ -113,7 +113,7 @@ def connect_callback(cli):
|
|||||||
def prepare_stuff(*args):
|
def prepare_stuff(*args):
|
||||||
cli.join(botconfig.CHANNEL)
|
cli.join(botconfig.CHANNEL)
|
||||||
cli.join(botconfig.ALT_CHANNELS)
|
cli.join(botconfig.ALT_CHANNELS)
|
||||||
cli.join(",".join(chan.lstrip("".join(var.STATUSMSG_PREFIXES.keys())) for chan in botconfig.DEV_CHANNEL.split(",")))
|
cli.join(",".join(chan.lstrip("".join(var.STATUSMSG_PREFIXES)) for chan in botconfig.DEV_CHANNEL.split(",")))
|
||||||
cli.msg("ChanServ", "op "+botconfig.CHANNEL)
|
cli.msg("ChanServ", "op "+botconfig.CHANNEL)
|
||||||
|
|
||||||
cli.cap("REQ", "extended-join")
|
cli.cap("REQ", "extended-join")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user