Don't try to reconnect when running the enable command on an existing bot instance
This commit is contained in:
parent
2e552f8d2e
commit
6569314267
|
@ -197,9 +197,6 @@ class IRCBot(IRCClient):
|
||||||
log("%s: connection failed: %s" % (self.name, error))
|
log("%s: connection failed: %s" % (self.name, error))
|
||||||
helper.sendAll("%s: connection failed: %s" % (self.name, error))
|
helper.sendAll("%s: connection failed: %s" % (self.name, error))
|
||||||
|
|
||||||
def reconnect(self):
|
|
||||||
connector.connect()
|
|
||||||
|
|
||||||
class Base(Protocol):
|
class Base(Protocol):
|
||||||
def __init__(self, addr):
|
def __init__(self, addr):
|
||||||
self.addr = addr
|
self.addr = addr
|
||||||
|
@ -440,8 +437,7 @@ class Helper(object):
|
||||||
if not spl[1] in IRCPool.keys():
|
if not spl[1] in IRCPool.keys():
|
||||||
self.addBot(spl[1])
|
self.addBot(spl[1])
|
||||||
else:
|
else:
|
||||||
IRCPool[spl[1]].refresh()
|
pass
|
||||||
IRCPool[spl[1]].reconnect()
|
|
||||||
success("Successfully enabled bot %s" % spl[1])
|
success("Successfully enabled bot %s" % spl[1])
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue