diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-05 11:34:52 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-05 11:34:52 +0000 |
commit | bea5769a055b31df3f78acf6c179f7f1949a42ca (patch) | |
tree | f5054330250c05468dddb294261d69562cb8d541 /src/irc | |
parent | fd562722d05fcea2874945d2cb094c3a33f64a9a (diff) | |
download | weechat-bea5769a055b31df3f78acf6c179f7f1949a42ca.zip |
Fixed some bugs with color codes:
- colors are now removed in topic for display in title bar
- completion of /topic command now strips color codes
- color codes are encoded in commands (not only text sent to channel/pv)
- double '%' is replaced by single '%' in command line (when irc_colors_send is ON)
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc-recv.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 24c9bd2d0..68e2ff493 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -2378,15 +2378,17 @@ irc_cmd_recv_topic (t_irc_server *server, char *host, char *nick, char *argument { irc_display_prefix (server, buffer, PREFIX_INFO); if (pos) + { gui_printf (buffer, - _("%s%s%s has changed topic for %s%s%s to: \"%s\"\n"), + _("%s%s%s has changed topic for %s%s%s to:"), GUI_COLOR(COLOR_WIN_CHAT_NICK), nick, GUI_COLOR(COLOR_WIN_CHAT), GUI_COLOR(COLOR_WIN_CHAT_CHANNEL), arguments, - GUI_COLOR(COLOR_WIN_CHAT), - pos); + GUI_COLOR(COLOR_WIN_CHAT)); + gui_printf (buffer, " \"%s\"\n", pos); + } else gui_printf (buffer, _("%s%s%s has unset topic for %s%s\n"), |