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
|
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!")
|
||||||
|
|
Loading…
Reference in a new issue