From 0e5b14fb47480f429dd374d7855a391fc344d78a Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 24 Sep 2019 15:57:23 +0100 Subject: [PATCH] reference mask_split, not s --- modules/channel_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/channel_op.py b/modules/channel_op.py index 31fd773b..564abbed 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -61,7 +61,7 @@ class Module(ModuleManager.BaseModule): def _format_hostmask(self, user, s): mask_split = s.split("$$") for i, mask_part in enumerate(mask_split): - mask_split[i] = (s.replace("$n", user.nickname) + mask_split[i] = (mask_part.replace("$n", user.nickname) .replace("$u", user.username) .replace("$h", user.hostname) .replace("$a", user.get_identified_account() or ""))