diff options
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/irc/fe-events-numeric.c | 13 | ||||
-rw-r--r-- | src/fe-common/irc/module-formats.c | 1 | ||||
-rw-r--r-- | src/fe-common/irc/module-formats.h | 3 |
3 files changed, 16 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c index 9d12ed0a..dcf8d5ba 100644 --- a/src/fe-common/irc/fe-events-numeric.c +++ b/src/fe-common/irc/fe-events-numeric.c @@ -195,6 +195,17 @@ static void event_silence_list(IRC_SERVER_REC *server, const char *data) g_free(params); } +static void event_accept_list(IRC_SERVER_REC *server, const char *data) +{ + char *params, *accepted; + + g_return_if_fail(data != NULL); + g_return_if_fail(server != NULL); + + params = event_get_params(data, 2, NULL, &accepted); + printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_ACCEPT_LIST, accepted); + g_free(params); +} static void event_invite_list(IRC_SERVER_REC *server, const char *data) { @@ -583,6 +594,7 @@ void fe_events_numeric_init(void) signal_add("event 315", (SIGNAL_FUNC) event_end_of_who); signal_add("event 271", (SIGNAL_FUNC) event_silence_list); signal_add("event 272", (SIGNAL_FUNC) sig_empty); + signal_add("event 281", (SIGNAL_FUNC) event_accept_list); signal_add("event 367", (SIGNAL_FUNC) event_ban_list); signal_add("event 348", (SIGNAL_FUNC) event_eban_list); signal_add("event 346", (SIGNAL_FUNC) event_invite_list); @@ -671,6 +683,7 @@ void fe_events_numeric_deinit(void) signal_remove("event 315", (SIGNAL_FUNC) event_end_of_who); signal_remove("event 271", (SIGNAL_FUNC) event_silence_list); signal_remove("event 272", (SIGNAL_FUNC) sig_empty); + signal_remove("event 281", (SIGNAL_FUNC) event_accept_list); signal_remove("event 367", (SIGNAL_FUNC) event_ban_list); signal_remove("event 348", (SIGNAL_FUNC) event_eban_list); signal_remove("event 346", (SIGNAL_FUNC) event_invite_list); diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c index 4e1626eb..f1720962 100644 --- a/src/fe-common/irc/module-formats.c +++ b/src/fe-common/irc/module-formats.c @@ -161,6 +161,7 @@ FORMAT_REC fecommon_irc_formats[] = { { "unsilenced", "Unsilenced {nick $0}", 1, { 0 } }, { "silence_line", "{nick $0}: silence {ban $1}", 2, { 0, 0 } }, { "ask_oper_pass", "Operator password:", 0 }, + { "accept_list", "Accepted users: {hilight $0}", 1, { 0 } }, { NULL, NULL, 0 } }; diff --git a/src/fe-common/irc/module-formats.h b/src/fe-common/irc/module-formats.h index ae2e55a9..d38ce686 100644 --- a/src/fe-common/irc/module-formats.h +++ b/src/fe-common/irc/module-formats.h @@ -130,7 +130,8 @@ enum { IRCTXT_SILENCED, IRCTXT_UNSILENCED, IRCTXT_SILENCE_LINE, - IRCTXT_ASK_OPER_PASS + IRCTXT_ASK_OPER_PASS, + IRCTXT_ACCEPT_LIST }; extern FORMAT_REC fecommon_irc_formats[]; |