aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_anticaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_anticaps.cpp')
-rw-r--r--src/modules/m_anticaps.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp
index 9972aca32..1f6ff0747 100644
--- a/src/modules/m_anticaps.cpp
+++ b/src/modules/m_anticaps.cpp
@@ -163,8 +163,9 @@ class ModuleAntiCaps final
void CreateBan(Channel* channel, User* user, bool mute)
{
- std::string banmask(mute ? "m:" : "");
- banmask.append("*!*@");
+ std::string banmask(mute ? "m:*!" : "*!");
+ banmask.append(user->GetBanIdent());
+ banmask.append("@");
banmask.append(user->GetDisplayedHost());
Modes::ChangeList changelist;