1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Use message theme settings in chat rooms

This commit is contained in:
James Booth 2014-11-07 21:05:51 +00:00
parent 0bde9a6121
commit 571db23150
3 changed files with 8 additions and 4 deletions

View File

@ -1739,14 +1739,14 @@ _ui_room_message(const char * const room_jid, const char * const nick,
int num = wins_get_num(window);
char *my_nick = muc_nick(room_jid);
if (strcmp(nick, my_nick) != 0) {
if (g_strcmp0(nick, my_nick) != 0) {
if (g_strrstr(message, my_nick) != NULL) {
win_save_print(window, '-', NULL, NO_ME, COLOUR_ROOMMENTION, nick, message);
} else {
win_save_print(window, '-', NULL, NO_ME, 0, nick, message);
win_save_print(window, '-', NULL, NO_ME, COLOUR_TEXT_THEM, nick, message);
}
} else {
win_save_print(window, '-', NULL, 0, 0, nick, message);
win_save_print(window, '-', NULL, 0, COLOUR_TEXT_ME, nick, message);
}
// currently in groupchat window

View File

@ -9,6 +9,8 @@ statusbar.brackets=white
statusbar.active=black
statusbar.new=white
main.text=white
main.text.me=cyan
main.text.them=yellow
input.text=green
main.time=yellow
main.splash=red
@ -23,7 +25,7 @@ gone=red
error=red
incoming=yellow
roominfo=yellow
roommention=cyan
roommention=red
me=blue
them=green
titlebar.unencrypted=red

View File

@ -9,6 +9,8 @@ statusbar.brackets=cyan
statusbar.active=cyan
statusbar.new=white
main.text=white
main.text.me=white
main.text.them=white
input.text=white
main.time=white
main.splash=cyan