diff options
| author | 2019-06-26 10:59:52 +0100 | |
|---|---|---|
| committer | 2019-06-26 10:59:52 +0100 | |
| commit | 29b15da17950c5e730a142d68eeba46a6aeeac8b (patch) | |
| tree | a6d44ac067f6a383ab09e2fb360bdbcedb89a7de /modules/line_handler/__init__.py | |
| parent | dont use "|" multi-event syntax. it's weird (diff) | |
| signature | ||
Switch all 'hook.kwargs.get(' calls to 'hook.get_kwarg('
Diffstat (limited to 'modules/line_handler/__init__.py')
| -rw-r--r-- | modules/line_handler/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py index fb77ec36..fed529e9 100644 --- a/modules/line_handler/__init__.py +++ b/modules/line_handler/__init__.py @@ -7,7 +7,7 @@ class Module(ModuleManager.BaseModule): hooks = self.events.on("raw.received").on(line.command).get_hooks() default_events = [] for hook in hooks: - default_events.append(hook.kwargs.get("default_event", False)) + default_events.append(hook.get_kwarg("default_event", False)) kwargs = {"server": server, "line": line, "direction": utils.Direction.Recv} |
