diff options
author | Test_User <hax@andrewyu.org> | 2024-09-14 16:09:17 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-09-14 16:09:17 -0400 |
commit | 380d7c6966ab00e23607f4308bbb7f5504b68980 (patch) | |
tree | c24666f7d7238775673794d037f827aa492b9144 /commands.c | |
parent | f576099a00cdf87d2e8931da8ec03e2b27c449a2 (diff) | |
download | coupserv-380d7c6966ab00e23607f4308bbb7f5504b68980.tar.gz coupserv-380d7c6966ab00e23607f4308bbb7f5504b68980.zip |
Fix permissions of local user during `spam` execution, adjust temporary SID currently used when sending PINGHEADmaster
Diffstat (limited to '')
-rw-r--r-- | commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -173,7 +173,7 @@ int spam_command(struct string sender, struct string original_message, struct st struct command_def *cmd = get_table_index(user_commands, argv[2]); if (cmd) { if (!cmd->local_only) { - if (cmd->privs.len != 0 && sender.len != 3) { + if (cmd->privs.len != 0 && sender.len != 3 && !is_local) { struct user_info *user = get_table_index(user_list, sender); if (!user) return 1; // really shouldn't happen |