Don't create duplicate bot instances
This commit is contained in:
parent
ab7ac6bade
commit
a673a2288e
|
@ -422,6 +422,7 @@ class Helper(object):
|
||||||
return
|
return
|
||||||
pool[spl[1]]["enabled"] = True
|
pool[spl[1]]["enabled"] = True
|
||||||
helper.savePool()
|
helper.savePool()
|
||||||
|
if not spl[1] in IRCPool.keys():
|
||||||
self.addBot(spl[1])
|
self.addBot(spl[1])
|
||||||
success("Successfully enabled bot %s" % spl[1])
|
success("Successfully enabled bot %s" % spl[1])
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue