示例#1
0
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')
示例#2
0
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')
示例#3
0
 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.')
示例#4
0
 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.')