Don't create duplicate bot instances
This commit is contained in:
parent
ab7ac6bade
commit
a673a2288e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue