Set right color for /me whith gc_nickname_color*
This commit is contained in:
parent
8945d21345
commit
cb555a148c
2 changed files with 4 additions and 0 deletions
|
@ -710,6 +710,7 @@ class ConversationTextview:
|
||||||
other_text_tag = self.detect_other_text_tag(text, kind)
|
other_text_tag = self.detect_other_text_tag(text, kind)
|
||||||
text_tags = other_tags_for_text[:] # create a new list
|
text_tags = other_tags_for_text[:] # create a new list
|
||||||
if other_text_tag:
|
if other_text_tag:
|
||||||
|
# note that color of /me may be overwritten in gc_control
|
||||||
text_tags.append(other_text_tag)
|
text_tags.append(other_text_tag)
|
||||||
else: # not status nor /me
|
else: # not status nor /me
|
||||||
if gajim.config.get(
|
if gajim.config.get(
|
||||||
|
|
|
@ -556,6 +556,9 @@ class GroupchatControl(ChatControlBase):
|
||||||
helpers.play_sound('muc_message_received')
|
helpers.play_sound('muc_message_received')
|
||||||
elif sound == 'highlight':
|
elif sound == 'highlight':
|
||||||
helpers.play_sound('muc_message_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()
|
self.check_and_possibly_add_focus_out_line()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue