1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Used constants for print flags

This commit is contained in:
James Booth 2014-07-16 22:41:02 +01:00
parent 860591872f
commit 20c11adddc
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);