def debug(channel, payload): if config['gmcp_debug'] is False: return if channel in config['gmcp_ignore_channels']: return if payload is None: log.msg("[%s]" % channel, system='GMCP') else: log.msg("[%s]: %s" % (channel, payload), system='GMCP')
def connectionLost(self, reason): self.connected = False self.factory.transports.remove(self.transport) self.reset() if sage.connected: _log.msg('Client disconnected. Sage is still connected to Achaea.')