Merge pull request #45 from Vgr255/master
Fix issue where bot would spam services
This commit is contained in:
commit
40a02b1a1b
@ -113,9 +113,13 @@ def connect_callback(cli):
|
|||||||
prepare_stuff = hook("endofmotd", hookid=294)(prepare_stuff)
|
prepare_stuff = hook("endofmotd", hookid=294)(prepare_stuff)
|
||||||
|
|
||||||
def mustregain(cli, *blah):
|
def mustregain(cli, *blah):
|
||||||
|
if not botconfig.PASS:
|
||||||
|
return
|
||||||
cli.ns_regain()
|
cli.ns_regain()
|
||||||
|
|
||||||
def mustrelease(cli, *rest):
|
def mustrelease(cli, *rest):
|
||||||
|
if not botconfig.PASS:
|
||||||
|
return # prevents the bot from trying to release without a password
|
||||||
cli.ns_release()
|
cli.ns_release()
|
||||||
cli.nick(botconfig.NICK)
|
cli.nick(botconfig.NICK)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user