Remove the bot instance when disabling
This commit is contained in:
parent
ce8da87ea7
commit
9950a527c1
|
@ -443,6 +443,7 @@ class Helper(object):
|
||||||
if spl[1] in IRCPool.keys():
|
if spl[1] in IRCPool.keys():
|
||||||
if IRCPool[spl[1]].connected == True:
|
if IRCPool[spl[1]].connected == True:
|
||||||
IRCPool[spl[1]].transport.loseConnection()
|
IRCPool[spl[1]].transport.loseConnection()
|
||||||
|
del IRCPool[spl[1]]
|
||||||
success("Successfully disabled bot %s" % spl[1])
|
success("Successfully disabled bot %s" % spl[1])
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue