diff options
| author | 2021-12-14 15:54:51 +0000 | |
|---|---|---|
| committer | 2021-12-14 15:55:06 +0000 | |
| commit | 15a68932b6238cf52c3e86d1d029b0e65b8b755b (patch) | |
| tree | 2f34b24a4e8d52c5a594ab6c9ff6c80a36ded469 /src/modules/m_clearchan.cpp | |
| parent | Sync 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_clearchan.cpp')
| -rw-r--r-- | src/modules/m_clearchan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp index 592559afc..fba493960 100644 --- a/src/modules/m_clearchan.cpp +++ b/src/modules/m_clearchan.cpp @@ -118,7 +118,7 @@ class CommandClearChan : public Command XLine* xline; try { - mask = ((method[0] == 'Z') ? curr->GetIPString() : "*@" + curr->GetRealHost()); + mask = (method[0] == 'Z') ? curr->GetIPString() : (curr->GetBanIdent() + "@" + curr->GetRealHost()); xline = xlf->Generate(ServerInstance->Time(), 60*60, user->nick, reason, mask); } catch (ModuleException&) |
