We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6842e01 commit 66fec7eCopy full SHA for 66fec7e
1 file changed
cloudbot/plugin.py
@@ -5,6 +5,7 @@
5
import logging
6
import os
7
import re
8
+from itertools import chain
9
10
import sqlalchemy
11
@@ -232,7 +233,7 @@ def load_plugin(self, path):
232
233
self.regex_hooks.sort(key=lambda x: x[1].priority)
234
dicts_of_lists_of_hooks = (self.event_type_hooks, self.raw_triggers)
235
lists_of_hooks = [self.catch_all_triggers, self.sieves]
- lists_of_hooks.extend(d.values() for d in dicts_of_lists_of_hooks)
236
+ lists_of_hooks.extend(chain.from_iterable(d.values() for d in dicts_of_lists_of_hooks))
237
238
for lst in lists_of_hooks:
239
lst.sort(key=lambda x: x.priority)
0 commit comments