aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-18 12:42:52 +0000
committerGravatar jesopo2019-02-18 12:42:52 +0000
commit6da35a899b1603a606f544ff2875496bb59b98c0 (patch)
treec2582bcfd52350d035605c81bbcebda759f56521 /modules/line_handler.py
parentDefault cap_done to True, there's only one scenario were it is false (resume.py) (diff)
signature
don't pass around `has_arbitrary` - we don't need it.
Diffstat (limited to 'modules/line_handler.py')
-rw-r--r--modules/line_handler.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/line_handler.py b/modules/line_handler.py
index f8a37103..77e31a33 100644
--- a/modules/line_handler.py
+++ b/modules/line_handler.py
@@ -28,8 +28,7 @@ class Module(ModuleManager.BaseModule):
default_event = any(default_events)
kwargs = {"args": line.args, "tags": line.tags, "server": server,
- "prefix": line.prefix, "has_arbitrary": line.has_arbitrary,
- "direction": Direction.RECV}
+ "prefix": line.prefix, "direction": Direction.RECV}
self.events.on("raw.received").on(line.command).call_unsafe(**kwargs)
if default_event or not hooks:
@@ -90,9 +89,7 @@ class Module(ModuleManager.BaseModule):
# server telling us what it supports
@utils.hook("raw.received.005")
def handle_005(self, event):
- isupport_list = event["args"][1:]
- if event["has_arbitrary"]:
- isupport_list = isupport_list[:-1]
+ isupport_list = event["args"][1:-1]
isupport = {}
for i, item in enumerate(isupport_list):