From 67e212710b9ad9622e3346c1af288132918e5527 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 30 Jan 2021 13:29:06 +0000 Subject: Rename to . --- src/modules/m_alias.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_alias.cpp') 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(" 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."); -- cgit v1.3.1-10-gc9f91