aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_alias.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-01-30 13:29:06 +0000
committerGravatar Sadie Powell2021-01-30 13:30:32 +0000
commit67e212710b9ad9622e3346c1af288132918e5527 (patch)
tree72bd7e2fde9729bebbd405c7ecc6ec3abcc8b606 /src/modules/m_alias.cpp
parentRename <security:hideulines> to <security:hideservices>. (diff)
Rename <alias:uline> to <alias:service>.
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r--src/modules/m_alias.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 30b08721d..f4d4ad680 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -41,8 +41,8 @@ class Alias
/** Nickname required to perform alias */
std::string RequiredNick;
- /** Alias requires ulined server */
- bool ULineOnly;
+ /** Alias requires the required nick to be on a services server */
+ bool ServiceOnly;
/** Requires oper? */
bool OperOnly;
@@ -95,7 +95,7 @@ class ModuleAlias : public Module
throw ModuleException("<alias:replace> is empty! at " + tag->source.str());
a.RequiredNick = tag->getString("requires");
- a.ULineOnly = tag->getBool("uline");
+ a.ServiceOnly = tag->getBool("service", tag->getBool("uline"));
a.ChannelCommand = tag->getBool("channelcommand", false);
a.UserCommand = tag->getBool("usercommand", true);
a.OperOnly = tag->getBool("operonly");
@@ -286,7 +286,7 @@ class ModuleAlias : public Module
return 1;
}
- if ((a.ULineOnly) && (!u->server->IsULine()))
+ if ((a.ServiceOnly) && (!u->server->IsService()))
{
ServerInstance->SNO.WriteToSnoMask('a', "NOTICE -- Service "+a.RequiredNick+" required by alias "+a.AliasedCommand+" is not on a U-lined server, possibly underhanded antics detected!");
user->WriteNumeric(ERR_NOSUCHNICK, a.RequiredNick, "is not a network service! Please inform a server operator as soon as possible.");