diff options
| author | 2023-08-20 18:05:06 +0100 | |
|---|---|---|
| committer | 2023-08-20 18:05:06 +0100 | |
| commit | ea849663283fc5cd037e2057d382f0798f321efd (patch) | |
| tree | aa1b540f614bd5bd32e73b5c380112ec5acd022a /src | |
| parent | Move the inspircd.org/service tag to the services module. (diff) | |
| download | inspircd++-ea849663283fc5cd037e2057d382f0798f321efd.tar.gz inspircd++-ea849663283fc5cd037e2057d382f0798f321efd.tar.bz2 inspircd++-ea849663283fc5cd037e2057d382f0798f321efd.zip | |
Fix showing command list when a user has the servers/auspex priv.
Diffstat (limited to 'src')
| -rw-r--r-- | src/coremods/core_info/cmd_commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
