We can *receive* PRIVMSG/NOTICE without a prefix
(line_handler.py)
This commit is contained in:
parent
21b2e0bbe7
commit
e573f9de51
1 changed files with 10 additions and 4 deletions
|
@ -435,8 +435,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
if "echo-message" in event["server"].capabilities:
|
if "echo-message" in event["server"].capabilities:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
if event["prefix"]:
|
||||||
from_self = event["server"].is_own_nickname(
|
from_self = event["server"].is_own_nickname(
|
||||||
event["prefix"].nickname)
|
event["prefix"].nickname)
|
||||||
|
else:
|
||||||
|
from_self = False
|
||||||
|
|
||||||
user = None
|
user = None
|
||||||
user_nickname = None
|
user_nickname = None
|
||||||
|
@ -504,8 +507,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
if "echo-message" in event["server"].capabilities:
|
if "echo-message" in event["server"].capabilities:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
if event["prefix"]:
|
||||||
from_self = event["server"].is_own_nickname(
|
from_self = event["server"].is_own_nickname(
|
||||||
event["prefix"].nickname)
|
event["prefix"].nickname)
|
||||||
|
else:
|
||||||
|
from_self = False
|
||||||
|
|
||||||
message = event["args"][1]
|
message = event["args"][1]
|
||||||
message_split = message.split(" ")
|
message_split = message.split(" ")
|
||||||
|
|
Loading…
Reference in a new issue