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,