diff options
-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, |