aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ircv3_ctctags.cpp2
-rw-r--r--src/modules/m_serverban.cpp2
2 files changed, 2 insertions, 2 deletions
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;