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:
parent
131ae4b40d
commit
743b3bc754
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue