Fix some places where U-line -> service was missed.

This commit is contained in:
Sadie Powell 2021-08-29 01:48:27 +01:00
parent 932866d5e2
commit 79b7d48427
11 changed files with 12 additions and 12 deletions

View File

@ -958,7 +958,7 @@ using their cloak when they quit.
topic, modes, and such will not be lost when it
empties (can only be set by server operators,
requires the permchannels module).
Q Only U-lined servers and their users can kick
Q Only services servers and their users can kick
(requires the nokicks module).
R Blocks unregistered users from joining (requires
the services account module).
@ -1024,7 +1024,7 @@ l Show all client connections with information (sendq, commands, bytes, time co
L Show all client connections with information and IP address
P Show online opers and their idle times
T Show bandwidth/socket statistics
U Show U-lined servers
U Show services servers
Y Show connection classes
O Show opertypes and the allowed user and channel modes it can set
E Show socket engine events

View File

@ -45,7 +45,7 @@ class CoreExport UserManager
*/
typedef std::vector<User*> OperList;
/** A list containing users who are on a U-lined servers. */
/** A list containing users who are on a services server. */
typedef std::vector<User*> ServiceList;
/** A list holding local users

View File

@ -71,7 +71,7 @@ CmdResult CommandKick::Handle(User* user, const Params& parameters)
if (u->server->IsService())
{
user->WriteNumeric(ERR_CHANOPRIVSNEEDED, c->name, "You may not kick a U-lined client");
user->WriteNumeric(ERR_CHANOPRIVSNEEDED, c->name, "You may not kick a service");
return CmdResult::FAILURE;
}
}

View File

@ -288,7 +288,7 @@ class ModuleAlias : public Module
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!");
ServerInstance->SNO.WriteToSnoMask('a', "NOTICE -- Service "+a.RequiredNick+" required by alias "+a.AliasedCommand+" is not on a services server, possibly underhanded antics detected!");
user->WriteNumeric(numeric, a.RequiredNick, "is not a network service! Please inform a server operator as soon as possible.");
return 1;
}

View File

@ -100,7 +100,7 @@ class RemoveBase : public Command
if (target->server->IsService())
{
user->WriteNumeric(ERR_CHANOPRIVSNEEDED, channame, "Only a U-line may remove a U-line from a channel.");
user->WriteNumeric(ERR_CHANOPRIVSNEEDED, channame, "Only a service may remove a service from a channel.");
return CmdResult::FAILURE;
}

View File

@ -58,7 +58,7 @@ class CommandSajoin : public Command
if (dest->server->IsService())
{
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a U-lined client");
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a service");
return CmdResult::FAILURE;
}
if (IS_LOCAL(user) && !ServerInstance->Channels.IsChannel(channel))

View File

@ -45,7 +45,7 @@ class CommandSakick : public Command
if (dest->server->IsService())
{
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a U-lined client");
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a service");
return CmdResult::FAILURE;
}

View File

@ -45,7 +45,7 @@ class CommandSanick : public Command
{
if (target && target->server->IsService())
{
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a U-lined client");
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a service");
return CmdResult::FAILURE;
}

View File

@ -51,7 +51,7 @@ class CommandSapart : public Command
if (dest->server->IsService())
{
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a U-lined client");
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a service");
return CmdResult::FAILURE;
}

View File

@ -44,7 +44,7 @@ class CommandSaquit : public Command
{
if (dest->server->IsService())
{
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a U-lined client");
user->WriteNumeric(ERR_NOPRIVILEGES, "Cannot use an SA command on a service");
return CmdResult::FAILURE;
}

View File

@ -109,7 +109,7 @@ class CommandSvshold : public Command
if (!user->server->IsService())
{
/* don't allow SVSHOLD from non-services clients */
/* don't allow SVSHOLD from non-services */
return CmdResult::FAILURE;
}