diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-26 20:02:52 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-26 20:02:52 +0000 |
commit | 131326fb4988a83585ba20b36c5e26b6bd9bfe6c (patch) | |
tree | ad0d1b12df8010f8c3b3fc338d73785ba281af7b /src/fe-common/irc/fe-events-numeric.c | |
parent | 64c8feeede901aa22311aafa6e7ef87d5073f3ad (diff) | |
download | irssi-131326fb4988a83585ba20b36c5e26b6bd9bfe6c.zip |
removed handling of "you're not chanop" event so that the default handler
may print the server which sends it (useful with desyncs)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2719 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-events-numeric.c')
-rw-r--r-- | src/fe-common/irc/fe-events-numeric.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c index 6c360591..e06b3acf 100644 --- a/src/fe-common/irc/fe-events-numeric.c +++ b/src/fe-common/irc/fe-events-numeric.c @@ -747,17 +747,6 @@ static void event_unknown_mode(IRC_SERVER_REC *server, const char *data) g_free(params); } -static void event_not_chanop(IRC_SERVER_REC *server, const char *data) -{ - char *params, *channel; - - g_return_if_fail(data != NULL); - - params = event_get_params(data, 2, NULL, &channel); - printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_NOT_CHANOP, channel); - g_free(params); -} - static void event_numeric(IRC_SERVER_REC *server, const char *data, const char *nick) { @@ -898,7 +887,6 @@ void fe_events_numeric_init(void) signal_add("event 474", (SIGNAL_FUNC) event_banned); signal_add("event 475", (SIGNAL_FUNC) event_bad_channel_key); signal_add("event 476", (SIGNAL_FUNC) event_bad_channel_mask); - signal_add("event 482", (SIGNAL_FUNC) event_not_chanop); signal_add("event 375", (SIGNAL_FUNC) event_motd); signal_add("event 376", (SIGNAL_FUNC) event_motd); signal_add("event 372", (SIGNAL_FUNC) event_motd); @@ -916,6 +904,7 @@ void fe_events_numeric_init(void) signal_add("event 436", (SIGNAL_FUNC) event_received); signal_add("event 438", (SIGNAL_FUNC) event_received); signal_add("event 465", (SIGNAL_FUNC) event_received); + signal_add("event 482", (SIGNAL_FUNC) event_received); signal_add("event 368", (SIGNAL_FUNC) event_target_received); signal_add("event 347", (SIGNAL_FUNC) event_target_received); @@ -981,7 +970,6 @@ void fe_events_numeric_deinit(void) signal_remove("event 474", (SIGNAL_FUNC) event_banned); signal_remove("event 475", (SIGNAL_FUNC) event_bad_channel_key); signal_remove("event 476", (SIGNAL_FUNC) event_bad_channel_mask); - signal_remove("event 482", (SIGNAL_FUNC) event_not_chanop); signal_remove("event 375", (SIGNAL_FUNC) event_motd); signal_remove("event 376", (SIGNAL_FUNC) event_motd); signal_remove("event 372", (SIGNAL_FUNC) event_motd); @@ -999,6 +987,7 @@ void fe_events_numeric_deinit(void) signal_remove("event 436", (SIGNAL_FUNC) event_received); signal_remove("event 438", (SIGNAL_FUNC) event_received); signal_remove("event 465", (SIGNAL_FUNC) event_received); + signal_remove("event 482", (SIGNAL_FUNC) event_received); signal_remove("event 368", (SIGNAL_FUNC) event_target_received); signal_remove("event 347", (SIGNAL_FUNC) event_target_received); |