aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_serverban.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-10-25 22:40:13 +0100
committerGravatar Sadie Powell2021-10-25 23:02:28 +0100
commitbeaae760bd7fb0afa05bc3fd7682e085b14b2930 (patch)
tree0b24ff90cc345b6869840dd610ae47935c094cfe /src/modules/m_serverban.cpp
parentRespect <security:hideserver> in the 005 numeric. (diff)
Add Server::GetPublicName(), fix not respecting <security:hideserver>.
Diffstat (limited to 'src/modules/m_serverban.cpp')
-rw-r--r--src/modules/m_serverban.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_serverban.cpp b/src/modules/m_serverban.cpp
index e4c70284c..5c7df8d23 100644
--- a/src/modules/m_serverban.cpp
+++ b/src/modules/m_serverban.cpp
@@ -37,7 +37,7 @@ class ModuleServerBan : public Module
{
if ((mask.length() > 2) && (mask[0] == 's') && (mask[1] == ':'))
{
- if (InspIRCd::Match(user->server->GetName(), mask.substr(2)))
+ if (InspIRCd::Match(user->server->GetPublicName(), mask.substr(2)))
return MOD_RES_DENY;
}
return MOD_RES_PASSTHRU;