summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-05-06 21:09:01 -0400
committerTest_User <hax@andrewyu.org>2024-05-06 21:09:01 -0400
commit7e5d56290d542bbb3880653bbb440b9429baa078 (patch)
tree6ec0e1ba172ea155c7c5b97a2402578a13f9d2b3 /commands.c
parent8121e26d13f1ffbff2b88c3a3c072bad76eacb61 (diff)
downloadcoupserv-7e5d56290d542bbb3880653bbb440b9429baa078.tar.gz
coupserv-7e5d56290d542bbb3880653bbb440b9429baa078.zip
And the forgotten spam recursion check
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index 2cff22d..7016d04 100644
--- a/commands.c
+++ b/commands.c
@@ -184,6 +184,14 @@ int spam_command(struct string sender, struct string original_message, struct st
return 0;
}
+
+ if (cmd->func == spam_command) {
+ SEND(STRING(":1HC000000 NOTICE "));
+ SEND(to);
+ SEND(STRING(" :Spam recursion is not allowed. The limit is for your own sake, please do not violate it.\n"));
+
+ return 0;
+ }
}
} else {
SEND(STRING(":1HC000000 NOTICE "));