diff --git a/modules/line_handler.py b/modules/line_handler.py index 8cf6f20d..76e9449d 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -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(" ")