From 743b3bc754907ce7c222cff7f91c40998e32b636 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 15 Oct 2018 14:29:16 +0100 Subject: [PATCH] event["args"] is an array already, args_split does not exist. Also send raw events from src/IRCServer.py as call_unsafe to make errors like that more apparent. --- modules/line_handler.py | 2 +- src/IRCServer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/line_handler.py b/modules/line_handler.py index 501e226b..da0d5d07 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -176,7 +176,7 @@ class Module(ModuleManager.BaseModule): realname = None if len(event["args"]) == 2: channel = event["server"].get_channel(event["args"][0]) - if not event["args_split"][1] == "*": + if not event["args"][1] == "*": account = event["args"][1] realname = event["arbitrary"] else: diff --git a/src/IRCServer.py b/src/IRCServer.py index e963af87..81d58426 100644 --- a/src/IRCServer.py +++ b/src/IRCServer.py @@ -210,7 +210,7 @@ class Server(IRCObject.Object): def parse_data(self, line): if not line: return - self.events.on("raw").call(server=self, line=line) + self.events.on("raw").call_unsafe(server=self, line=line) self.check_users() def check_users(self): for user in self.new_users: