mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -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);
|
int num = wins_get_num(window);
|
||||||
char *my_nick = muc_nick(room_jid);
|
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) {
|
if (g_strrstr(message, my_nick) != NULL) {
|
||||||
win_save_print(window, '-', NULL, NO_ME, COLOUR_ROOMMENTION, nick, message);
|
win_save_print(window, '-', NULL, NO_ME, COLOUR_ROOMMENTION, nick, message);
|
||||||
} else {
|
} else {
|
||||||
win_save_print(window, '-', NULL, NO_ME, 0, nick, message);
|
win_save_print(window, '-', NULL, NO_ME, COLOUR_TEXT_THEM, nick, message);
|
||||||
}
|
}
|
||||||
} else {
|
} 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
|
// currently in groupchat window
|
||||||
|
@ -9,6 +9,8 @@ statusbar.brackets=white
|
|||||||
statusbar.active=black
|
statusbar.active=black
|
||||||
statusbar.new=white
|
statusbar.new=white
|
||||||
main.text=white
|
main.text=white
|
||||||
|
main.text.me=cyan
|
||||||
|
main.text.them=yellow
|
||||||
input.text=green
|
input.text=green
|
||||||
main.time=yellow
|
main.time=yellow
|
||||||
main.splash=red
|
main.splash=red
|
||||||
@ -23,7 +25,7 @@ gone=red
|
|||||||
error=red
|
error=red
|
||||||
incoming=yellow
|
incoming=yellow
|
||||||
roominfo=yellow
|
roominfo=yellow
|
||||||
roommention=cyan
|
roommention=red
|
||||||
me=blue
|
me=blue
|
||||||
them=green
|
them=green
|
||||||
titlebar.unencrypted=red
|
titlebar.unencrypted=red
|
||||||
|
@ -9,6 +9,8 @@ statusbar.brackets=cyan
|
|||||||
statusbar.active=cyan
|
statusbar.active=cyan
|
||||||
statusbar.new=white
|
statusbar.new=white
|
||||||
main.text=white
|
main.text=white
|
||||||
|
main.text.me=white
|
||||||
|
main.text.them=white
|
||||||
input.text=white
|
input.text=white
|
||||||
main.time=white
|
main.time=white
|
||||||
main.splash=cyan
|
main.splash=cyan
|
||||||
|
Loading…
Reference in New Issue
Block a user