Beispiel #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')
Beispiel #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')
Beispiel #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.')
Beispiel #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.')