From 380d7c6966ab00e23607f4308bbb7f5504b68980 Mon Sep 17 00:00:00 2001 From: Test_User Date: Sat, 14 Sep 2024 16:09:17 -0400 Subject: Fix permissions of local user during `spam` execution, adjust temporary SID currently used when sending PING --- commands.c | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.c b/commands.c index b3fb422..e000ac5 100644 --- a/commands.c +++ b/commands.c @@ -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 diff --git a/main.c b/main.c index 1ec66bc..4f4108a 100644 --- a/main.c +++ b/main.c @@ -274,7 +274,7 @@ int main(void) { if (last_timeout) { break; } else { - SEND(STRING(":1HC PING 1HC 100\n")); // TODO: Fix this as well + SEND(STRING(":1HC PING 1HC 101\n")); // TODO: Fix this as well last_timeout = 1; } } -- cgit v1.2.3