Implement counting nickname changes and remove check on listener
This commit is contained in:
@@ -34,13 +34,10 @@ class Server(Protocol):
|
||||
def connectionLost(self, reason):
|
||||
self.authed = False
|
||||
log("Connection lost from %s:%s -- %s" % (self.addr.host, self.addr.port, reason.getErrorMessage()))
|
||||
if not listener == None:
|
||||
if self.addr in connections.keys():
|
||||
del connections[self.addr]
|
||||
else:
|
||||
warn("Tried to remove a non-existant connection.")
|
||||
if self.addr in connections.keys():
|
||||
del connections[self.addr]
|
||||
else:
|
||||
warn("Tried to remove a connection from a listener that wasn't running.")
|
||||
warn("Tried to remove a non-existant connection.")
|
||||
if self.addr in MonitorPool:
|
||||
MonitorPool.remove(self.addr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user