diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-07 19:47:16 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-08 00:31:11 +0100 |
commit | 52599f9b8cbd37e922d959e482521a4e16121582 (patch) | |
tree | 71450872d050c2ee231f28cfd85a86341d5a8e9e /src | |
parent | 4610a1d6e3de68cedb2cd61d270b92ec714c44c7 (diff) | |
download | poezio-52599f9b8cbd37e922d959e482521a4e16121582.tar.gz poezio-52599f9b8cbd37e922d959e482521a4e16121582.tar.bz2 poezio-52599f9b8cbd37e922d959e482521a4e16121582.tar.xz poezio-52599f9b8cbd37e922d959e482521a4e16121582.zip |
use only full color mode when sending messages. Simple color mode should never
be used in any part of the code except inside the input.
(cherry picked from commit 17e5411d8f050a3c5e5bcd010551eecac96b5911)
Conflicts:
src/tabs.py
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index 506d1de9..08105a58 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -321,7 +321,7 @@ class ChatTab(Tab): if not self.execute_command(clean_text): if txt.startswith('//'): txt = txt[1:] - self.command_say(txt) + self.command_say(xhtml.convert_simple_to_full_colors(txt)) self.cancel_paused_delay() def send_chat_state(self, state, always_send=False): @@ -596,7 +596,7 @@ class MucTab(ChatTab): r = self.core.open_private_window(self.name, user.nick) if r and len(args) > 1: msg = arg[len(nick)+1:] - self.core.current_tab().command_say(msg) + self.core.current_tab().command_say(xhtml.convert_simple_to_full_colors(msg)) if not r: self.core.information(_("Cannot find user: %s" % nick), 'Error') |