We can *receive* PRIVMSG/NOTICE without a prefix (line_handler.py)

This commit is contained in:
jesopo 2019-02-12 17:02:12 +00:00
parent 21b2e0bbe7
commit e573f9de51

View file

@ -435,8 +435,11 @@ class Module(ModuleManager.BaseModule):
if "echo-message" in event["server"].capabilities:
return
else:
from_self = event["server"].is_own_nickname(
event["prefix"].nickname)
if event["prefix"]:
from_self = event["server"].is_own_nickname(
event["prefix"].nickname)
else:
from_self = False
user = None
user_nickname = None
@ -504,8 +507,11 @@ class Module(ModuleManager.BaseModule):
if "echo-message" in event["server"].capabilities:
return
else:
from_self = event["server"].is_own_nickname(
event["prefix"].nickname)
if event["prefix"]:
from_self = event["server"].is_own_nickname(
event["prefix"].nickname)
else:
from_self = False
message = event["args"][1]
message_split = message.split(" ")