Don't create duplicate bot instances

pull/1/head
Mark Veidemanis 7 years ago
parent ab7ac6bade
commit a673a2288e

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

Loading…
Cancel
Save