1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Added format for the chanserv url event.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@757 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-14 19:41:47 +00:00 committed by cras
parent 2b4f089bd0
commit afcf554bf8
3 changed files with 3 additions and 1 deletions

View File

@ -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);
}

View File

@ -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 } },

View File

@ -40,6 +40,7 @@ enum {
IRCTXT_NAMES_NICK,
IRCTXT_ENDOFNAMES,
IRCTXT_CHANNEL_CREATED,
IRCTXT_CHANNEL_URL,
IRCTXT_TOPIC,
IRCTXT_NO_TOPIC,
IRCTXT_TOPIC_INFO,