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.
This commit is contained in:
jesopo 2018-10-15 14:29:16 +01:00
parent 131ae4b40d
commit 743b3bc754
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ class Module(ModuleManager.BaseModule):
realname = None realname = None
if len(event["args"]) == 2: if len(event["args"]) == 2:
channel = event["server"].get_channel(event["args"][0]) channel = event["server"].get_channel(event["args"][0])
if not event["args_split"][1] == "*": if not event["args"][1] == "*":
account = event["args"][1] account = event["args"][1]
realname = event["arbitrary"] realname = event["arbitrary"]
else: else:

View file

@ -210,7 +210,7 @@ class Server(IRCObject.Object):
def parse_data(self, line): def parse_data(self, line):
if not line: if not line:
return return
self.events.on("raw").call(server=self, line=line) self.events.on("raw").call_unsafe(server=self, line=line)
self.check_users() self.check_users()
def check_users(self): def check_users(self):
for user in self.new_users: for user in self.new_users: