Esempio n. 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')
Esempio n. 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')
Esempio n. 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.')
Esempio n. 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.')