def handle_close(self): """ handle a close """ self.api('send.client')("%s - %s: Client Disconnected" % \ (self.host, self.port)) self.api('managers.getm')('proxy').removeclient(self) self.api('events.eraise')('client_disconnected', {'client': self}) self.api('events.unregister')('to_client_event', self.addtooutbuffer) Telnet.handle_close(self)
def handle_close(self): """ hand closing the connection """ self.api('send.msg')('Disconnected from mud', 'net') self.api('send.client')(self.api('colors.convertcolors')( '@R#BP@w: The mud closed the connection')) self.api('options.resetoptions')(self, True) Telnet.handle_close(self) self.connectedtime = None self.api('events.eraise')('muddisconnect', {}, calledfrom="mud")
def handle_close(self): """ hand closing the connection """ self.api('send.msg')('Disconnected from mud', 'net') self.api('send.client')(self.api('colors.convertcolors')( '@R#BP@w: The mud closed the connection')) self.api('options.resetoptions')(self, True) Telnet.handle_close(self) self.connectedtime = None self.api('events.eraise')('muddisconnect', {}, calledfrom="mud")
def handle_close(self): """ hand closing the connection """ self.api('send.msg')('Disconnected from mud', 'net') self.api('events.eraise')('to_client_event', { 'original': self.api('colors.convertcolors') ('@R#BP@w: The mud closed the connection'), 'dtype': 'fromproxy' }) self.api('options.resetoptions')(self, True) Telnet.handle_close(self) self.connectedtime = None self.api('events.eraise')('muddisconnect', {})
def handle_close(self): """ handle a close """ if self.state != CLOSING: self.state = CLOSING self.api('send.client')("%s - %s: Client Disconnected" % \ (self.host, self.port)) self.api('send.msg')("%s - %s: Client Disconnected" % \ (self.host, self.port), primary='net') self.api('events.eraise')('client_disconnected', {'client':self}, calledfrom="client") self.api('events.unregister')('to_client_event', self.addtooutbufferevent) if self.connected: while self.outbuffer: self.handle_write() Telnet.handle_close(self)
def handle_close(self): """ handle a close """ if self.state != CLOSING: self.state = CLOSING self.api('send.client')("%s - %s: Client Disconnected" % \ (self.host, self.port)) self.api('send.msg')("%s - %s: Client Disconnected" % \ (self.host, self.port), primary='net') self.api('events.eraise')('client_disconnected', { 'client': self }, calledfrom="client") self.api('events.unregister')('to_client_event', self.addtooutbufferevent) if self.connected: while self.outbuffer: self.handle_write() Telnet.handle_close(self)