mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
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:
parent
1526a00123
commit
b0a89db1d6
@ -814,7 +814,12 @@ static int
|
|||||||
_inp_rl_win_attention_handler(int count, int key) {
|
_inp_rl_win_attention_handler(int count, int key) {
|
||||||
ProfWin* current = wins_get_current();
|
ProfWin* current = wins_get_current();
|
||||||
if ( 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);
|
win_redraw(current);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user