Remove some irclib cruft
authorAlexander van Gessel <ai0867@gmail.com>
Tue, 26 Nov 2013 20:47:26 +0000 (21:47 +0100)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 26 Nov 2013 21:39:09 +0000 (16:39 -0500)
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
irkerd

diff --git a/irkerd b/irkerd
index ddd3f9cc8edc19f8543b914f66acceddec78a1c4..24b3e7753074150e7c27de99b3b14d03f0feeb29 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -705,9 +705,6 @@ class Irker:
         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:
@@ -739,10 +736,6 @@ class Irker:
     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)