Set right color for /me whith gc_nickname_color*

This commit is contained in:
Jean-Marie Traissard 2006-09-02 09:56:52 +00:00
parent 8945d21345
commit cb555a148c
2 changed files with 4 additions and 0 deletions

View File

@ -710,6 +710,7 @@ class ConversationTextview:
other_text_tag = self.detect_other_text_tag(text, kind)
text_tags = other_tags_for_text[:] # create a new list
if other_text_tag:
# note that color of /me may be overwritten in gc_control
text_tags.append(other_text_tag)
else: # not status nor /me
if gajim.config.get(

View File

@ -556,6 +556,9 @@ class GroupchatControl(ChatControlBase):
helpers.play_sound('muc_message_received')
elif sound == 'highlight':
helpers.play_sound('muc_message_highlight')
if text.startswith('/me ') or text.startswith('/me\n'):
other_tags_for_text.append('gc_nickname_color_' + \
str(self.gc_custom_colors[contact]))
self.check_and_possibly_add_focus_out_line()