mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Use message theme settings in chat rooms
This commit is contained in:
parent
0bde9a6121
commit
571db23150
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user