use ban-mask export in badwords.py
This commit is contained in:
parent
d5d097d8ee
commit
d8d9a90f11
1 changed files with 2 additions and 3 deletions
|
@ -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!")
|
||||
|
|
Loading…
Reference in a new issue