From 439994464f9db3aa1424414f035c39671c7384d0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 12 Nov 2018 22:37:01 +0000 Subject: [PATCH] The target channel of an /INVITE is the second argument! --- modules/line_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/line_handler.py b/modules/line_handler.py index fb0b5e00..3aec3f13 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -362,7 +362,7 @@ class Module(ModuleManager.BaseModule): # someone (maybe me!) has been invited somewhere @utils.hook("raw.invite") def invite(self, event): - target_channel = event["args"][0] + target_channel = event["args"][1] user = event["server"].get_user(event["prefix"].nickname) target_user = event["server"].get_user(event["args"][0]) self.events.on("received.invite").call(user=user,