reference mask_split, not s
This commit is contained in:
parent
9c591ca8dc
commit
0e5b14fb47
1 changed files with 1 additions and 1 deletions
|
@ -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 ""))
|
||||||
|
|
Loading…
Reference in a new issue