diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-14 19:41:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-14 19:41:47 +0000 |
commit | afcf554bf8e81fb6a08f39cf9e3d6400e0587c5a (patch) | |
tree | 02b6c12408ad2e108017c729a4effbac45e62935 /src/fe-common/irc | |
parent | 2b4f089bd02393975468bdf81d9acbdead5b50e8 (diff) | |
download | irssi-afcf554bf8e81fb6a08f39cf9e3d6400e0587c5a.zip |
Added format for the chanserv url event.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@757 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r-- | src/fe-common/irc/fe-events-numeric.c | 2 | ||||
-rw-r--r-- | src/fe-common/irc/module-formats.c | 1 | ||||
-rw-r--r-- | src/fe-common/irc/module-formats.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c index b98bd7e5..aecd7c76 100644 --- a/src/fe-common/irc/fe-events-numeric.c +++ b/src/fe-common/irc/fe-events-numeric.c @@ -527,7 +527,7 @@ static void event_chanserv_url(const char *data, IRC_SERVER_REC *server) g_return_if_fail(data != NULL); params = event_get_params(data, 3, NULL, &channel, &url); - printtext(server, channel, MSGLEVEL_CRAP, "%s", url); + printformat(server, channel, MSGLEVEL_CRAP, IRCTXT_CHANNEL_URL, url); g_free(params); } diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c index e9d41684..4aab9c08 100644 --- a/src/fe-common/irc/module-formats.c +++ b/src/fe-common/irc/module-formats.c @@ -63,6 +63,7 @@ FORMAT_REC fecommon_irc_formats[] = { { "names_nick", "%K[%n%_$0%_$1%K] ", 2, { 0, 0 } }, { "endofnames", "%g%_$0%_%K:%n Total of %_$1%_ nicks %K[%n%_$2%_ ops, %_$3%_ voices, %_$4%_ normal%K]", 5, { 0, 1, 1, 1, 1 } }, { "channel_created", "Channel %_$0%_ created $1", 2, { 0, 0 } }, + { "url", "Home page for %c$0%K:%n $1", 2, { 0, 0 } }, { "topic", "Topic for %c$0%K:%n $1", 2, { 0, 0 } }, { "no_topic", "No topic set for %c$0", 1, { 0 } }, { "topic_info", "Topic set by %_$0%_ %K[%n$1%K]", 2, { 0, 0 } }, diff --git a/src/fe-common/irc/module-formats.h b/src/fe-common/irc/module-formats.h index 88980328..4bf14185 100644 --- a/src/fe-common/irc/module-formats.h +++ b/src/fe-common/irc/module-formats.h @@ -40,6 +40,7 @@ enum { IRCTXT_NAMES_NICK, IRCTXT_ENDOFNAMES, IRCTXT_CHANNEL_CREATED, + IRCTXT_CHANNEL_URL, IRCTXT_TOPIC, IRCTXT_NO_TOPIC, IRCTXT_TOPIC_INFO, |