diff options
author | Test_User <hax@andrewyu.org> | 2024-05-06 21:09:01 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-05-06 21:09:01 -0400 |
commit | 7e5d56290d542bbb3880653bbb440b9429baa078 (patch) | |
tree | 6ec0e1ba172ea155c7c5b97a2402578a13f9d2b3 /commands.c | |
parent | 8121e26d13f1ffbff2b88c3a3c072bad76eacb61 (diff) | |
download | coupserv-7e5d56290d542bbb3880653bbb440b9429baa078.tar.gz coupserv-7e5d56290d542bbb3880653bbb440b9429baa078.zip |
And the forgotten spam recursion check
Diffstat (limited to '')
-rw-r--r-- | commands.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 ")); |