Пример #1
0
 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.')
Пример #2
0
 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.')
Пример #3
0
 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)
Пример #4
0
 def disconnect(self, reason=None, *arg, **kw):
     print self.log('Kicked: %s' % reason)
     ServerProtocol.disconnect(self, reason, *arg, **kw)
Пример #5
0
 def disconnect(self, reason = None, *arg, **kw):
     print self.log('Kicked: %s' % reason)          
     ServerProtocol.disconnect(self, reason, *arg, **kw)
Пример #6
0
 def connectionLost(self, reason):
     ServerProtocol.connectionLost(self, reason)
     # if we're logged in, unload the account
     if self.account:
         self.account.unload()
Пример #7
0
 def connectionLost(self, reason):
     channels = self.channels.values()
     ServerProtocol.connectionLost(self, reason)
     for channel in channels:
         self.channelLeft(channel)