about summary refs log tree commit diff stats
path: root/src/input_win.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-31 23:41:30 +0000
committerJames Booth <boothj5@gmail.com>2012-10-31 23:41:30 +0000
commit270ac0355857d8a47453fc29f6131f281ba168be (patch)
tree1ad6a65a364375c29d59565c1fcd2b348f34b01c /src/input_win.c
parent5792cd597dc7a7de6d1b7127cb99d7d36adb50c2 (diff)
downloadprofani-tty-270ac0355857d8a47453fc29f6131f281ba168be.tar.gz
Fixed invalid state transition from <active/> to <paused/>
Diffstat (limited to 'src/input_win.c')
-rw-r--r--src/input_win.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_win.c b/src/input_win.c
index 7defee6a..73720a9d 100644
--- a/src/input_win.c
+++ b/src/input_win.c
@@ -146,13 +146,13 @@ inp_get_char(int *ch, char *input, int *size)
                 char *recipient = win_get_recipient();
                 chat_session_no_activity(recipient);
 
-                if (chat_session_gone(recipient) &&
+                if (chat_session_is_gone(recipient) &&
                         !chat_session_get_sent(recipient)) {
                     jabber_send_gone(recipient);
-                } else if (chat_session_inactive(recipient) &&
+                } else if (chat_session_is_inactive(recipient) &&
                         !chat_session_get_sent(recipient)) {
                     jabber_send_inactive(recipient);
-                } else if (chat_session_paused(recipient) &&
+                } else if (chat_session_is_paused(recipient) &&
                         !chat_session_get_sent(recipient)) {
                     jabber_send_paused(recipient);
                 }
@@ -165,7 +165,7 @@ inp_get_char(int *ch, char *input, int *size)
                 char *recipient = win_get_recipient();
                 chat_session_set_composing(recipient);
                 if (!chat_session_get_sent(recipient) ||
-                        chat_session_paused(recipient)) {
+                        chat_session_is_paused(recipient)) {
                     jabber_send_composing(recipient);
                 }
             }