Remove the bot instance when disabling

pull/1/head
Mark Veidemanis 7 years ago
parent ce8da87ea7
commit 9950a527c1

@ -443,6 +443,7 @@ class Helper(object):
if spl[1] in IRCPool.keys():
if IRCPool[spl[1]].connected == True:
IRCPool[spl[1]].transport.loseConnection()
del IRCPool[spl[1]]
success("Successfully disabled bot %s" % spl[1])
return
else:

Loading…
Cancel
Save