From beaae760bd7fb0afa05bc3fd7682e085b14b2930 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 25 Oct 2021 22:40:13 +0100 Subject: Add Server::GetPublicName(), fix not respecting . --- src/modules/m_ircv3_ctctags.cpp | 2 +- src/modules/m_serverban.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_ircv3_ctctags.cpp b/src/modules/m_ircv3_ctctags.cpp index 8dd83bd7f..2a692bf49 100644 --- a/src/modules/m_ircv3_ctctags.cpp +++ b/src/modules/m_ircv3_ctctags.cpp @@ -163,7 +163,7 @@ class CommandTagMsg : public Command { // The target is a user on a specific server (e.g. jto@tolsun.oulu.fi). target = ServerInstance->FindNickOnly(parameters[0].substr(0, targetserver - parameters[0].c_str())); - if (target && strcasecmp(target->server->GetName().c_str(), targetserver + 1)) + if (target && strcasecmp(target->server->GetPublicName().c_str(), targetserver + 1)) target = NULL; } else 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; -- cgit v1.3.1-10-gc9f91