Remove the bot instance when disabling

This commit is contained in:
Mark Veidemanis 2017-11-25 20:26:56 +00:00
parent ce8da87ea7
commit 9950a527c1
1 changed files with 1 additions and 0 deletions

View File

@ -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: