aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Muller <drnlmuller+debian@gmail.com>2018-04-27 14:02:07 +0200
committerNeil Muller <drnlmuller+debian@gmail.com>2018-04-27 14:02:07 +0200
commit9693967cf4f835e2362bc7d7c9ae455a1d518362 (patch)
tree0faa819bbe37a678c644e806bba4a2950b95e3e9
parentMerge branch 'conn_fix' into 'master' (diff)
downloadirker-9693967cf4f835e2362bc7d7c9ae455a1d518362.tar.xz
Drop sorted() from event_handler
This breaks on python 3 with "TypeError: unorderable types:" The sorting was originally added to irclib to fix https://sourceforge.net/p/python-irclib/bugs/9/ ( in https://github.com/jaraco/irc/commit/ad159cbbf1d00fe15876a61d0abf88e43f5112ca) but as irkerd doesn't have event priorties, the issue doesn't apply here anyway. This closes #11.
-rwxr-xr-xirkerd2
1 files changed, 1 insertions, 1 deletions
diff --git a/irkerd b/irkerd
index 7dd8c3f..9d5f890 100755
--- a/irkerd
+++ b/irkerd
@@ -197,7 +197,7 @@ class IRCClient():
def handle_event(self, connection, event):
with self.mutex:
h = self.event_handlers
- th = sorted(h.get("all_events", []) + h.get(event.type, []))
+ th = h.get("all_events", []) + h.get(event.type, [])
for handler in th:
handler(connection, event)