From 3b17cbacea43d2a26a03a68896d27fa2375cdfc4 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 26 Jan 2019 19:38:14 +0000 Subject: [PATCH] Set server name by `event["prefix"].hoskmask` not `.nickname`, they're the same thing at the moment when it's not a `nick!user@host` but eventually it might not be (line_handler.py) --- modules/line_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/line_handler.py b/modules/line_handler.py index bdd3b445..03e42479 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -66,7 +66,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("raw.received.001", default_event=True) def handle_001(self, event): event["server"].set_write_throttling(True) - event["server"].name = event["prefix"].nickname + event["server"].name = event["prefix"].hostmask event["server"].set_own_nickname(event["args"][0]) event["server"].send_whois(event["server"].nickname)