From b0a89db1d64893c2c5f5261c4b790165b16a442f Mon Sep 17 00:00:00 2001 From: DebXWoody Date: Sat, 29 May 2021 20:44:17 +0200 Subject: [PATCH] Attention flag message ( enabled, disabled) When the user enables or disabled the attention flag, a message will be displayed in the chat window. --- src/ui/inputwin.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index f8b67bfe..b2b2ea33 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -814,7 +814,12 @@ static int _inp_rl_win_attention_handler(int count, int key) { ProfWin* current = wins_get_current(); if ( current ) { - win_toggle_attention(current); + gboolean attention = win_toggle_attention(current); + if (attention) { + win_println(current, THEME_DEFAULT, "!", "Attention flag has been activated"); + } else { + win_println(current, THEME_DEFAULT, "!", "Attention flag has been deactivated"); + } win_redraw(current); } return 0;