aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_repeat.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-14 15:54:51 +0000
committerGravatar Sadie Powell2021-12-14 15:55:06 +0000
commit15a68932b6238cf52c3e86d1d029b0e65b8b755b (patch)
tree2f34b24a4e8d52c5a594ab6c9ff6c80a36ded469 /src/modules/m_repeat.cpp
parentSync uniqueusername from the connect class to the user. (diff)
If a user has a unique username then include it in bans.
Diffstat (limited to 'src/modules/m_repeat.cpp')
-rw-r--r--src/modules/m_repeat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp
index c114d9396..c432ae57e 100644
--- a/src/modules/m_repeat.cpp
+++ b/src/modules/m_repeat.cpp
@@ -413,7 +413,7 @@ class RepeatModule : public Module
if (settings->Action == ChannelSettings::ACT_BAN)
{
Modes::ChangeList changelist;
- changelist.push_add(*banmode, "*!*@" + user->GetDisplayedHost());
+ changelist.push_add(*banmode, "*!" + user->GetBanIdent() + "@" + user->GetDisplayedHost());
ServerInstance->Modes->Process(ServerInstance->FakeClient, chan, NULL, changelist);
}