mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
2b4f089bd0
commit
afcf554bf8
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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 } },
|
||||
|
@ -40,6 +40,7 @@ enum {
|
||||
IRCTXT_NAMES_NICK,
|
||||
IRCTXT_ENDOFNAMES,
|
||||
IRCTXT_CHANNEL_CREATED,
|
||||
IRCTXT_CHANNEL_URL,
|
||||
IRCTXT_TOPIC,
|
||||
IRCTXT_NO_TOPIC,
|
||||
IRCTXT_TOPIC_INFO,
|
||||
|
Loading…
Reference in New Issue
Block a user