mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Do not send <composing/> for unprintable characters
This commit is contained in:
parent
e45e6c46b7
commit
12aa2b640a
@ -168,7 +168,8 @@ inp_get_char(int *ch, char *input, int *size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if got char and in chat window, chat session active
|
// if got char and in chat window, chat session active
|
||||||
if (prefs_get_outtype() && (*ch != ERR) && win_in_chat() && !in_command) {
|
if (prefs_get_outtype() && (*ch != ERR) && win_in_chat() && !in_command &&
|
||||||
|
_printable(*ch)) {
|
||||||
char *recipient = win_get_recipient();
|
char *recipient = win_get_recipient();
|
||||||
chat_session_set_composing(recipient);
|
chat_session_set_composing(recipient);
|
||||||
if (!chat_session_get_sent(recipient) ||
|
if (!chat_session_get_sent(recipient) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user