Skip to content
Snippets Groups Projects
Commit dae38eab authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Merge branch 'bugs/drop_event_handler_sorting' into 'master'

Drop sorted() from event_handler

Closes #11

See merge request esr/irker!18
parents 983a4d21 9693967c
No related branches found
No related tags found
No related merge requests found
...@@ -197,7 +197,7 @@ class IRCClient(): ...@@ -197,7 +197,7 @@ class IRCClient():
def handle_event(self, connection, event): def handle_event(self, connection, event):
with self.mutex: with self.mutex:
h = self.event_handlers 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: for handler in th:
handler(connection, event) handler(connection, event)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment