mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Used constants for print flags
This commit is contained in:
parent
860591872f
commit
20c11adddc
@ -1582,7 +1582,7 @@ _ui_room_history(const char * const room_jid, const char * const nick,
|
||||
{
|
||||
ProfWin *window = wins_get_by_recipient(room_jid);
|
||||
|
||||
win_save_vprint(window, '-', (&tv_stamp), 8, 0, nick, message);
|
||||
win_save_vprint(window, '-', (&tv_stamp), NO_COLOUR_FROM, 0, nick, message);
|
||||
|
||||
if (wins_is_current(window)) {
|
||||
win_update_virtual(window);
|
||||
@ -1599,9 +1599,9 @@ _ui_room_message(const char * const room_jid, const char * const nick,
|
||||
|
||||
if (strcmp(nick, my_nick) != 0) {
|
||||
if (g_strrstr(message, my_nick) != NULL) {
|
||||
win_save_print(window, '-', NULL, 1, COLOUR_ROOMMENTION, nick, message);
|
||||
win_save_print(window, '-', NULL, NO_ME, COLOUR_ROOMMENTION, nick, message);
|
||||
} else {
|
||||
win_save_print(window, '-', NULL, 1, 0, nick, message);
|
||||
win_save_print(window, '-', NULL, NO_ME, 0, nick, message);
|
||||
}
|
||||
} else {
|
||||
win_save_print(window, '-', NULL, 0, 0, nick, message);
|
||||
|
@ -324,7 +324,7 @@ win_print_incoming_message(ProfWin *window, GTimeVal *tv_stamp,
|
||||
{
|
||||
case WIN_CHAT:
|
||||
case WIN_PRIVATE:
|
||||
win_save_print(window, '-', tv_stamp, 1, 0, from, message);
|
||||
win_save_print(window, '-', tv_stamp, NO_ME, 0, from, message);
|
||||
break;
|
||||
default:
|
||||
assert(FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user