diff options
| author | 2019-09-24 15:57:23 +0100 | |
|---|---|---|
| committer | 2019-09-24 15:57:23 +0100 | |
| commit | 0e5b14fb47480f429dd374d7855a391fc344d78a (patch) | |
| tree | 7d9848f4306fd510638a9e5df0413a38d6f3868c /modules/channel_op.py | |
| parent | don't throw when account name is null (diff) | |
| signature | ||
reference mask_split, not s
Diffstat (limited to 'modules/channel_op.py')
| -rw-r--r-- | modules/channel_op.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 "")) |
