use ban-mask export in badwords.py

This commit is contained in:
jesopo 2020-03-08 18:45:57 +00:00
parent d5d097d8ee
commit d8d9a90f11

View file

@ -80,9 +80,8 @@ class Module(ModuleManager.BaseModule):
ban = True
if ban:
event["channel"].send_ban("*!%s@%s" % (
event["user"].username,
event["user"].realname))
event["channel"].send_ban(self.exports.get("ban-mask")(
event["server"], event["channel"], event["user"]))
if kick:
event["channel"].send_kick(event["user"].nickname,
"You said a badword!")