Don't create duplicate bot instances

This commit is contained in:
Mark Veidemanis 2017-11-25 19:44:03 +00:00
parent ab7ac6bade
commit a673a2288e
1 changed files with 2 additions and 1 deletions

View File

@ -422,6 +422,7 @@ class Helper(object):
return
pool[spl[1]]["enabled"] = True
helper.savePool()
if not spl[1] in IRCPool.keys():
self.addBot(spl[1])
success("Successfully enabled bot %s" % spl[1])
return