diff options
author | Timo Sirainen <cras@irssi.org> | 2000-05-12 15:37:34 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-05-12 15:37:34 +0000 |
commit | 969cfe8abcdff1047696c22e13c79c1f4c239137 (patch) | |
tree | 88609af69f5a9e64c313bcdc8c7ec8cd2bad67f8 | |
parent | f45ca3a109a17b1f7460a4e640a14f0f28e6c7f3 (diff) | |
download | irssi-969cfe8abcdff1047696c22e13c79c1f4c239137.zip |
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
-rw-r--r-- | src/fe-common/irc/fe-ctcp.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-ctcp.c b/src/fe-common/irc/fe-ctcp.c index d06e1185..7a9c7cc5 100644 --- a/src/fe-common/irc/fe-ctcp.c +++ b/src/fe-common/irc/fe-ctcp.c @@ -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); } diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c index 0319bc34..0a76bb22 100644 --- a/src/fe-common/irc/module-formats.c +++ b/src/fe-common/irc/module-formats.c @@ -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 } }, diff --git a/src/fe-common/irc/module-formats.h b/src/fe-common/irc/module-formats.h index d75ca9c4..ea615d2d 100644 --- a/src/fe-common/irc/module-formats.h +++ b/src/fe-common/irc/module-formats.h @@ -132,6 +132,7 @@ enum { IRCTXT_FILL_8, IRCTXT_CTCP_REPLY, + IRCTXT_CTCP_REPLY_CHANNEL, IRCTXT_CTCP_PING_REPLY, IRCTXT_CTCP_REQUESTED, |