summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-11-05 13:21:48 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-11-05 13:21:48 +0000
commitd94a7d05eae7b0d4535227af66395187cb224544 (patch)
treeeb598e151aa9d805268abd0209848ad44fedef0c /src/common
parentbea5769a055b31df3f78acf6c179f7f1949a42ca (diff)
downloadweechat-d94a7d05eae7b0d4535227af66395187cb224544.zip
Convert colors codes to %B, %C with /topic completion (if option irc_colors_send
is ON)
Diffstat (limited to 'src/common')
-rw-r--r--src/common/completion.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/completion.c b/src/common/completion.c
index b4cc9ae56..d62ae7294 100644
--- a/src/common/completion.c
+++ b/src/common/completion.c
@@ -647,7 +647,10 @@ completion_build_list (t_completion *completion, void *channel)
completion_stop (completion);
else
{
- string = (char *)gui_color_decode ((unsigned char *)((t_irc_channel *)channel)->topic, 0);
+ if (cfg_irc_colors_send)
+ string = (char *)gui_color_decode_for_user_entry ((unsigned char *)((t_irc_channel *)channel)->topic);
+ else
+ string = (char *)gui_color_decode ((unsigned char *)((t_irc_channel *)channel)->topic, 0);
string2 = weechat_convert_encoding ((local_utf8) ?
cfg_look_charset_decode_iso : cfg_look_charset_decode_utf,
(cfg_look_charset_internal && cfg_look_charset_internal[0]) ?