diff options
| author | 2021-12-14 16:56:48 +0000 | |
|---|---|---|
| committer | 2021-12-14 16:56:48 +0000 | |
| commit | e9d54724e6cf9ff3772795cf5eed4b259700214f (patch) | |
| tree | c7e06a9ca507df1db4eb5dc2e40a10da8198c086 /src/modules/m_anticaps.cpp | |
| parent | Revert "Remove support for defaults in find_{compiler,linker}_flags()". (diff) | |
| parent | If a user has a unique username then include it in bans. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_anticaps.cpp')
| -rw-r--r-- | src/modules/m_anticaps.cpp | 5 |
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; |
