diff options
| author | 2026-03-08 20:44:10 +0000 | |
|---|---|---|
| committer | 2026-03-08 20:44:10 +0000 | |
| commit | 71cd111219bd0046ac59e811edaf4187d6f95529 (patch) | |
| tree | 0565561331314e45d4f507d1b9690cb2b1060fa4 /src/commands.cpp | |
| parent | Respect <security:restrictbannedusers> in setname. (diff) | |
Allow Command::IsUsableBy to be used for server-originated messages.
Diffstat (limited to 'src/commands.cpp')
| -rw-r--r-- | src/commands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index ac1219a24..dd8cbe55d 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -430,8 +430,8 @@ bool Command::IsUsableBy(User *user) const case CmdAccess::OPERATOR: // Only opers can use oper commands. return user->HasCommandPermission(this->name); - case CmdAccess::SERVER: // Nobody can use server commands. - return false; + case CmdAccess::SERVER: // Only servers can use server commands. + return IS_SERVER(user); } return true; // Should never happen. } |
