summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-04-28 14:27:31 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-04-28 14:27:31 +0200
commit43a53a87aa8635a6da38f0f5600d81d82f0de1f7 (patch)
tree6a8e5b8bf8ec3d5ef02f7266097490acc2149d59 /src/plugins/irc/irc-protocol.c
parent7baf4b8b22222141a5fb480f93a379a33def2ea9 (diff)
downloadweechat-43a53a87aa8635a6da38f0f5600d81d82f0de1f7.zip
irc: add new options irc.color.topic_old and irc.color.topic_new
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r--src/plugins/irc/irc-protocol.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 5bc259e46..28eefd9fa 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -1696,7 +1696,7 @@ IRC_PROTOCOL_CALLBACK(topic)
ptr_buffer),
irc_protocol_tags (command, NULL, NULL),
_("%s%s%s%s has changed topic for %s%s%s "
- "from \"%s%s\" to \"%s%s\""),
+ "from \"%s%s%s\" to \"%s%s%s\""),
weechat_prefix ("network"),
IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick),
nick,
@@ -1704,8 +1704,10 @@ IRC_PROTOCOL_CALLBACK(topic)
IRC_COLOR_CHAT_CHANNEL,
argv[2],
IRC_COLOR_CHAT,
+ IRC_COLOR_TOPIC_OLD,
(old_topic_color) ? old_topic_color : ptr_channel->topic,
IRC_COLOR_CHAT,
+ IRC_COLOR_TOPIC_NEW,
(topic_color) ? topic_color : pos_topic,
IRC_COLOR_CHAT);
if (old_topic_color)
@@ -1717,8 +1719,8 @@ IRC_PROTOCOL_CALLBACK(topic)
command, NULL,
ptr_buffer),
irc_protocol_tags (command, NULL, NULL),
- _("%s%s%s%s has changed topic for %s%s%s to "
- "\"%s%s\""),
+ _("%s%s%s%s has changed topic for %s%s%s "
+ "to \"%s%s%s\""),
weechat_prefix ("network"),
IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick),
nick,
@@ -1726,6 +1728,7 @@ IRC_PROTOCOL_CALLBACK(topic)
IRC_COLOR_CHAT_CHANNEL,
argv[2],
IRC_COLOR_CHAT,
+ IRC_COLOR_TOPIC_NEW,
(topic_color) ? topic_color : pos_topic,
IRC_COLOR_CHAT);
}
@@ -1744,7 +1747,7 @@ IRC_PROTOCOL_CALLBACK(topic)
ptr_buffer),
irc_protocol_tags (command, NULL, NULL),
_("%s%s%s%s has unset topic for %s%s%s "
- "(old topic: \"%s%s\")"),
+ "(old topic: \"%s%s%s\")"),
weechat_prefix ("network"),
IRC_COLOR_NICK_IN_SERVER_MESSAGE(ptr_nick),
nick,
@@ -1752,6 +1755,7 @@ IRC_PROTOCOL_CALLBACK(topic)
IRC_COLOR_CHAT_CHANNEL,
argv[2],
IRC_COLOR_CHAT,
+ IRC_COLOR_TOPIC_OLD,
(old_topic_color) ? old_topic_color : ptr_channel->topic,
IRC_COLOR_CHAT);
if (old_topic_color)