aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-04-12 20:25:54 +0100
committerGravatar jesopo2020-04-12 20:25:54 +0100
commit31eb503df154579c134ae20a61783f6658a527d0 (patch)
treeec94205029788eb413b15bb4f6fe4af94cdd8056 /src/core_modules
parentadd bot.conf options so we can disable given log files (diff)
signature
format_token_replace() returns a tuple these days
Diffstat (limited to 'src/core_modules')
-rw-r--r--src/core_modules/banmask.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core_modules/banmask.py b/src/core_modules/banmask.py
index bebe0d11..bc33d4a9 100644
--- a/src/core_modules/banmask.py
+++ b/src/core_modules/banmask.py
@@ -14,7 +14,8 @@ class Module(ModuleManager.BaseModule):
vars["u"] = vars["username"] = user.username
vars["h"] = vars["hostname"] = user.hostname
vars["a"] = vars["account"] = user.account or ""
- return utils.parse.format_token_replace(s, vars)
+ missing, out = utils.parse.format_token_replace(s, vars)
+ return out
@utils.export("ban-mask")
def banmask(self, server, channel, user):
format = channel.get_setting("ban-format",