From a673a2288e81d3a10acabd57cbfe1272627d5990 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 25 Nov 2017 19:44:03 +0000 Subject: [PATCH] Don't create duplicate bot instances --- threshold | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/threshold b/threshold index 244423c..8ec836a 100755 --- a/threshold +++ b/threshold @@ -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: