Example #1
0
 def _dispatcher(self, connection, event):
     if not callable(event.arguments):
         # irclib decided to change the event API, so here
         # we make it backward compatible.
         arguments = event.arguments
         event.arguments = lambda: arguments
         event.eventtype = lambda: event.type
         source = event.source
         event.source = lambda: source
     event_args = "".join(event.arguments()).decode("utf-8")
     log = (event.eventtype(), self.nickname, event_args)
     getLogger("irc.dispatch").debug("%s: [%s] %s" % log)
     SimpleIRCClient._dispatcher(self, connection, event)
Example #2
0
 def _dispatcher(self, connection, event):
     if not callable(event.arguments):
         # irclib decided to change the event API, so here
         # we make it backward compatible.
         arguments = event.arguments
         event.arguments = lambda: arguments
         event.eventtype = lambda: event.type
         source = event.source
         event.source = lambda: source
     event_args = "".join(event.arguments()).decode("utf-8")
     log = (event.eventtype(), self.nickname, event_args)
     getLogger("irc.dispatch").debug("%s: [%s] %s" % log)
     SimpleIRCClient._dispatcher(self, connection, event)
Example #3
0
 def _dispatcher(self, connection, event):
     log = (event.eventtype(), self.nickname, "".join(event.arguments()))
     getLogger("irc.dispatch").debug("%s: [%s] %s" % log)
     SimpleIRCClient._dispatcher(self, connection, event)
Example #4
0
 def _dispatcher(self, connection, event):
     log = (event.eventtype(), self.nickname, "".join(event.arguments()))
     getLogger("irc.dispatch").debug("%s: [%s] %s" % log)
     SimpleIRCClient._dispatcher(self, connection, event)
Example #5
0
 def _dispatcher(self, connection, event):
     event_args = ''.join(event.arguments()).decode('utf-8')
     log = (event.eventtype(), self.nickname, event_args)
     getLogger('irc.dispatch').debug('%s: [%s] %s' % log)
     SimpleIRCClient._dispatcher(self, connection, event)