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