def connectionLost(self, reason): # here, we need to call OServer's connectionLost # because connectionLost is a twisted method, and the server # needs to know that the client has disconnected. ServerProtocol.connectionLost(self, reason) if self.loggedIn: self.log('Connection disconnected.')
def connectionLost(self, reason): ServerProtocol.connectionLost(self, reason) # update server list if this client is a server if self.server: self.server = False self.factory.update() self.log('Removed server IP %r' % self.transport.getPeer().host)
def disconnect(self, reason=None, *arg, **kw): print self.log('Kicked: %s' % reason) ServerProtocol.disconnect(self, reason, *arg, **kw)
def disconnect(self, reason = None, *arg, **kw): print self.log('Kicked: %s' % reason) ServerProtocol.disconnect(self, reason, *arg, **kw)
def connectionLost(self, reason): ServerProtocol.connectionLost(self, reason) # if we're logged in, unload the account if self.account: self.account.unload()
def connectionLost(self, reason): channels = self.channels.values() ServerProtocol.connectionLost(self, reason) for channel in channels: self.channelLeft(channel)