summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-10-14 19:28:14 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-10-14 19:28:14 +0000
commit2b4f089bd02393975468bdf81d9acbdead5b50e8 (patch)
treed6923171570c6f768d1295308802208f84b5803f /src/fe-common/irc
parentbd19c4a7d76e9ca884a461b13e5471af80e84d44 (diff)
downloadirssi-2b4f089bd02393975468bdf81d9acbdead5b50e8.zip
when received event 328 (chanserv url in dalnet) write it to correct
channel. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@756 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-events-numeric.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c
index 88775eb1..b98bd7e5 100644
--- a/src/fe-common/irc/fe-events-numeric.c
+++ b/src/fe-common/irc/fe-events-numeric.c
@@ -520,6 +520,17 @@ static void event_end_of_whois(const char *data, IRC_SERVER_REC *server)
g_free(params);
}
+static void event_chanserv_url(const char *data, IRC_SERVER_REC *server)
+{
+ char *params, *channel, *url;
+
+ g_return_if_fail(data != NULL);
+
+ params = event_get_params(data, 3, NULL, &channel, &url);
+ printtext(server, channel, MSGLEVEL_CRAP, "%s", url);
+ g_free(params);
+}
+
static void event_end_of_whowas(const char *data, IRC_SERVER_REC *server)
{
char *params, *nick;
@@ -721,6 +732,7 @@ void fe_events_numeric_init(void)
signal_add("event 314", (SIGNAL_FUNC) event_whowas);
signal_add("event 317", (SIGNAL_FUNC) event_whois_idle);
signal_add("event 318", (SIGNAL_FUNC) event_end_of_whois);
+ signal_add("event 328", (SIGNAL_FUNC) event_chanserv_url);
signal_add("event 369", (SIGNAL_FUNC) event_end_of_whowas);
signal_add("event 319", (SIGNAL_FUNC) event_whois_channels);
signal_add("event 302", (SIGNAL_FUNC) event_userhost);
@@ -780,6 +792,7 @@ void fe_events_numeric_deinit(void)
signal_remove("event 314", (SIGNAL_FUNC) event_whowas);
signal_remove("event 317", (SIGNAL_FUNC) event_whois_idle);
signal_remove("event 318", (SIGNAL_FUNC) event_end_of_whois);
+ signal_remove("event 328", (SIGNAL_FUNC) event_chanserv_url);
signal_remove("event 369", (SIGNAL_FUNC) event_end_of_whowas);
signal_remove("event 319", (SIGNAL_FUNC) event_whois_channels);
signal_remove("event 302", (SIGNAL_FUNC) event_userhost);