1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-22 04:35:58 -04:00

Display CTCP REPLY in a channel with a different text format than private

CTCP replies


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@215 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-12 15:37:34 +00:00 committed by cras
parent f45ca3a109
commit 969cfe8abc
3 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@ static void ctcp_default_reply(const char *data, IRC_SERVER_REC *server, const c
if (ptr != NULL) *ptr++ = '\0'; else ptr = "";
printformat(server, ischannel(*target) ? target : nick, MSGLEVEL_CTCPS,
IRCTXT_CTCP_REPLY, str, nick, ptr);
ischannel(*target) ? IRCTXT_CTCP_REPLY_CHANNEL : IRCTXT_CTCP_REPLY, str, nick, ptr, target);
g_free(str);
}

View File

@ -161,6 +161,7 @@ FORMAT_REC fecommon_irc_formats[] =
{ NULL, "CTCPs", 0 },
{ "ctcp_reply", "CTCP %_$0%_ reply from %_$1%_%K:%n $2", 3, { 0, 0, 0 } },
{ "ctcp_reply_channel", "CTCP %_$0%_ reply from %_$1%_ in channel %_$4%_%K:%n $2", 4, { 0, 0, 0, 0 } },
{ "ctcp_ping_reply", "CTCP %_PING%_ reply from %_$0%_: $1.$2 seconds", 3, { 0, 2, 2 } },
{ "ctcp_requested", "%g>>> %_$0%_ %K[%g$1%K] %grequested %_$2%_ from %_$3", 4, { 0, 0, 0, 0 } },

View File

@ -132,6 +132,7 @@ enum {
IRCTXT_FILL_8,
IRCTXT_CTCP_REPLY,
IRCTXT_CTCP_REPLY_CHANNEL,
IRCTXT_CTCP_PING_REPLY,
IRCTXT_CTCP_REQUESTED,