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 ban = True
if ban: if ban:
event["channel"].send_ban("*!%s@%s" % ( event["channel"].send_ban(self.exports.get("ban-mask")(
event["user"].username, event["server"], event["channel"], event["user"]))
event["user"].realname))
if kick: if kick:
event["channel"].send_kick(event["user"].nickname, event["channel"].send_kick(event["user"].nickname,
"You said a badword!") "You said a badword!")