1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Do not send <composing/> for unprintable characters

This commit is contained in:
James Booth 2012-11-01 01:24:48 +00:00
parent e45e6c46b7
commit 12aa2b640a

View File

@ -168,7 +168,8 @@ inp_get_char(int *ch, char *input, int *size)
}
// 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();
chat_session_set_composing(recipient);
if (!chat_session_get_sent(recipient) ||