about summary refs log tree commit diff stats
path: root/src/ui/inputwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-08 00:57:25 +0000
committerJames Booth <boothj5@gmail.com>2015-01-08 00:57:25 +0000
commit5e7d2f5f91d47af330742a3b554e6f03450d6623 (patch)
tree5560d7b60b3b32b9c56adf1291b91d5db34a4101 /src/ui/inputwin.c
parent8bbf126e83205f942ec2bfdc1a9597c82a2c811d (diff)
downloadprofani-tty-5e7d2f5f91d47af330742a3b554e6f03450d6623.tar.gz
Removed chat states from chat_session module, WIP
Diffstat (limited to 'src/ui/inputwin.c')
-rw-r--r--src/ui/inputwin.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index 19318745..57634385 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -145,18 +145,18 @@ inp_get_char(char *input, int *size, int *result)
     noecho();
     *result = wget_wch(inp_win, &ch);
 
-    gboolean in_command = FALSE;
-    if ((display_size > 0 && input[0] == '/') ||
-            (display_size == 0 && ch == '/')) {
-        in_command = TRUE;
-    }
-
-    if (*result == ERR) {
-        prof_handle_idle();
-    }
-    if ((*result != ERR) && (*result != KEY_CODE_YES) && !in_command && _printable(ch)) {
-        prof_handle_activity();
-    }
+//    gboolean in_command = FALSE;
+//    if ((display_size > 0 && input[0] == '/') ||
+//            (display_size == 0 && ch == '/')) {
+//        in_command = TRUE;
+//    }
+
+//    if (*result == ERR) {
+//        prof_handle_idle();
+//    }
+//    if ((*result != ERR) && (*result != KEY_CODE_YES) && !in_command && _printable(ch)) {
+//        prof_handle_activity();
+//    }
 
     // if it wasn't an arrow key etc
     if (!_handle_edit(*result, ch, input, size)) {