aboutsummaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
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 "));