summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'message.c')
-rw-r--r--message.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/message.c b/message.c
index 6aa2725..f360e99 100644
--- a/message.c
+++ b/message.c
@@ -1323,11 +1323,14 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
}
return 1;
- // Unrecognised BLABOUNCER command received, send some help instructions
+ // Unrecognised BLABOUNCER command received (or a BLABOUNCER HELP command), send some help instructions
} else {
- debugprint(DEBUG_SOME, "Client BLABOUNCER unrecognised command found and it is: %s with length %zd! Sending a help message.\n", tokens[1], strlen(tokens[1]));
- snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :Unrecognised BLABOUNCER command received. Valid commands are:", ircdstate->ircnick);
- sendtoclient(sourcefd, outgoingmsg, clients, settings, 0);
+ // Debug and NOTICE an unrecognised command error unless the command was "HELP"
+ if (strncasecmp(tokens[1], "HELP", strlen("HELP")) != 0) {
+ debugprint(DEBUG_SOME, "Client BLABOUNCER unrecognised command found and it is: %s with length %zd! Sending a help message.\n", tokens[1], strlen(tokens[1]));
+ snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :Unrecognised BLABOUNCER command received. Valid commands are:", ircdstate->ircnick);
+ sendtoclient(sourcefd, outgoingmsg, clients, settings, 0);
+ }
snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :\"BLABOUNCER REPLAY [[[days:]hours:]minutes:]\" (To replay a given length of time of replay log.)", ircdstate->ircnick);
sendtoclient(sourcefd, outgoingmsg, clients, settings, 0);
snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :\"BLABOUNCER REHASH\" (To reload settings from the configuration file, see README for which settings can be reloaded.)", ircdstate->ircnick);