From 12aa2b640acee1a6e40514d102a25f084597f595 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 1 Nov 2012 01:24:48 +0000 Subject: [PATCH] Do not send for unprintable characters --- src/input_win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input_win.c b/src/input_win.c index 27f42d22..c5de7538 100644 --- a/src/input_win.c +++ b/src/input_win.c @@ -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) ||