From ea849663283fc5cd037e2057d382f0798f321efd Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 20 Aug 2023 18:05:06 +0100 Subject: Fix showing command list when a user has the servers/auspex priv. --- src/coremods/core_info/cmd_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/coremods/core_info/cmd_commands.cpp b/src/coremods/core_info/cmd_commands.cpp index 9fd8194bb..55847594a 100644 --- a/src/coremods/core_info/cmd_commands.cpp +++ b/src/coremods/core_info/cmd_commands.cpp @@ -66,7 +66,7 @@ CmdResult CommandCommands::HandleLocal(LocalUser* user, const Params& parameters // Only send this command to the user if: // 1. It is usable by the caller. // 2. The caller has the servers/auspex priv. - if (!usable || user->HasPrivPermission("servers/auspex")) + if (!usable && !user->HasPrivPermission("servers/auspex")) continue; Numeric::Numeric numeric(RPL_COMMANDS); -- cgit v1.3.1-10-gc9f91