Attention flag message ( enabled, disabled)
When the user enables or disabled the attention flag, a message will be displayed in the chat window.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user