Revert "Add ERR_HELPNOTFOUND"

This reverts commit 91439c099e1bbf848dac03f67a3239fcc4c1f771;
because it adds handling for numeric 524, which conflicts with
ERR_QUARANTINED and ERR_OPERSPVERIFY.
This commit is contained in:
Valentin Lorentz 2022-04-20 22:42:21 +02:00 committed by Ailin Nemui
commit 48571389c7
3 changed files with 0 additions and 12 deletions

View file

@ -578,14 +578,6 @@ static void event_help(IRC_SERVER_REC *server, int formatnum, const char *data)
g_free(params);
}
static void event_helpnotfound(IRC_SERVER_REC *server, const char *data,
const char *nick)
{
/* Numeric 524 (ERR_HELPNOTFOUND) sent as a reply to HELP or HELPOP command.
*/
event_help(server, IRCTXT_HELP_NOT_FOUND, data);
}
static void event_helpstart(IRC_SERVER_REC *server, const char *data,
const char *nick)
{
@ -769,7 +761,6 @@ void fe_events_numeric_init(void)
signal_add("event 372", (SIGNAL_FUNC) event_motd);
signal_add("event 422", (SIGNAL_FUNC) event_motd);
signal_add("event 439", (SIGNAL_FUNC) event_target_too_fast);
signal_add("event 524", (SIGNAL_FUNC) event_helpnotfound);
signal_add("event 704", (SIGNAL_FUNC) event_helpstart);
signal_add("event 705", (SIGNAL_FUNC) event_helptxt);
signal_add("event 706", (SIGNAL_FUNC) event_endofhelp);
@ -868,7 +859,6 @@ void fe_events_numeric_deinit(void)
signal_remove("event 372", (SIGNAL_FUNC) event_motd);
signal_remove("event 422", (SIGNAL_FUNC) event_motd);
signal_remove("event 439", (SIGNAL_FUNC) event_target_too_fast);
signal_remove("event 524", (SIGNAL_FUNC) event_helpnotfound);
signal_remove("event 704", (SIGNAL_FUNC) event_helpstart);
signal_remove("event 705", (SIGNAL_FUNC) event_helptxt);
signal_remove("event 706", (SIGNAL_FUNC) event_endofhelp);