From 656931426721c6f9d9d3f3d97a10a36f3ff8ec49 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 27 Nov 2017 20:18:39 +0000 Subject: [PATCH] Don't try to reconnect when running the enable command on an existing bot instance --- threshold | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/threshold b/threshold index 1a206a7..d9c1e81 100755 --- a/threshold +++ b/threshold @@ -197,9 +197,6 @@ class IRCBot(IRCClient): log("%s: connection failed: %s" % (self.name, error)) helper.sendAll("%s: connection failed: %s" % (self.name, error)) - def reconnect(self): - connector.connect() - class Base(Protocol): def __init__(self, addr): self.addr = addr @@ -440,8 +437,7 @@ class Helper(object): if not spl[1] in IRCPool.keys(): self.addBot(spl[1]) else: - IRCPool[spl[1]].refresh() - IRCPool[spl[1]].reconnect() + pass success("Successfully enabled bot %s" % spl[1]) return else: