about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-07-24 13:56:11 +0100
committerJames Booth <boothj5@gmail.com>2016-07-24 13:56:11 +0100
commit8d8f2f290d5d78d130d2db7c6fad90af2f031877 (patch)
treeb69e6954acd958546c41f08da8ce459e5edde1e5 /src/ui
parent7c593c278014760c065a87edf293546794911f58 (diff)
downloadprofani-tty-8d8f2f290d5d78d130d2db7c6fad90af2f031877.tar.gz
Moved chat state handling code to chat_state.c
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/inputwin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index e8db673c..10035d37 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -54,6 +54,7 @@
 #endif
 
 #include "command/cmd_ac.h"
+#include "chat_state.h"
 #include "common.h"
 #include "config/accounts.h"
 #include "config/preferences.h"
@@ -164,7 +165,7 @@ inp_readline(void)
                 rl_line_buffer[0] != '/' &&
                 rl_line_buffer[0] != '\0' &&
                 rl_line_buffer[0] != '\n') {
-            prof_handle_activity();
+            chat_state_activity();
         }
 
         ui_reset_idle_time();
@@ -174,7 +175,7 @@ inp_readline(void)
         inp_nonblocking(TRUE);
     } else {
         inp_nonblocking(FALSE);
-        prof_handle_idle();
+        chat_state_idle();
     }
 
     if (inp_line) {