reference mask_split, not s

This commit is contained in:
jesopo 2019-09-24 15:57:23 +01:00
parent 9c591ca8dc
commit 0e5b14fb47

View file

@ -61,7 +61,7 @@ class Module(ModuleManager.BaseModule):
def _format_hostmask(self, user, s): def _format_hostmask(self, user, s):
mask_split = s.split("$$") mask_split = s.split("$$")
for i, mask_part in enumerate(mask_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("$u", user.username)
.replace("$h", user.hostname) .replace("$h", user.hostname)
.replace("$a", user.get_identified_account() or "")) .replace("$a", user.get_identified_account() or ""))