if connection.context:
cxt = connection.context
arguments = event.arguments
- # irclib 5.0 compatibility, because the maintainer is a fool
- if callable(arguments):
- arguments = arguments()
for lump in arguments:
if lump.startswith("DEAF="):
if not logfile:
def _handle_kick(self, connection, event):
"Server hung up the connection."
target = event.target
- # irclib 5.0 compatibility, because the maintainer continues
- # to be a fool.
- if callable(target):
- target = target()
self.irc.debug(1, "irker has been kicked from %s on %s" % (target, connection.server))
if connection.context:
connection.context.handle_kick(target)