summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rwxr-xr-x[-rw-r--r--]launch.sh0
-rw-r--r--src/tabs.py8
3 files changed, 7 insertions, 5 deletions
diff --git a/README b/README
index c348274e..07b954b1 100644
--- a/README
+++ b/README
@@ -82,9 +82,9 @@ the Creative Commons BY license (http://creativecommons.org/licenses/by/2.0/)
Thanks
=======================
= People =
- Link Mauve - Code
+ Link Mauve - Code, testing
Gaëtan Ribémont (http://www.bonbref.com) - Logo design
- mathieui - Testing, Makefile, Documentation and Donation
+ mathieui - Code, testing, makefile, documentation and donation
Ovart - Testing
Koshie - Donation
Gapan - Makefile
diff --git a/launch.sh b/launch.sh
index 799b92f6..799b92f6 100644..100755
--- a/launch.sh
+++ b/launch.sh
diff --git a/src/tabs.py b/src/tabs.py
index a1944b9c..af468d8c 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -287,6 +287,7 @@ class ChatTab(Tab):
if txt.startswith('//'):
txt = txt[1:]
self.command_say(txt)
+ self.cancel_paused_delay()
def send_chat_state(self, state):
"""
@@ -305,6 +306,7 @@ class ChatTab(Tab):
if config.get('send_chat_states', 'true') == 'true' and self.remote_wants_chatstates:
if not empty_before and empty_after:
self.send_chat_state("active")
+ self.cancel_paused_delay()
elif (empty_before or (self.timed_event_paused is not None and not self.timed_event_paused())) and not empty_after:
self.send_chat_state("composing")
@@ -1483,22 +1485,22 @@ class ConversationTab(ChatTab):
self.input.do_command(key)
empty_after = self.input.get_text() == '' or (self.input.get_text().startswith('/') and not self.input.get_text().startswith('//'))
self.send_composing_chat_state(empty_before, empty_after)
+ self.set_paused_delay(empty_before and not empty_after)
if not empty_before and empty_after:
self.cancel_paused_delay()
- self.set_paused_delay(empty_before and not empty_after)
return False
def on_lose_focus(self):
self.set_color_state(theme.COLOR_TAB_NORMAL)
self.text_win.remove_line_separator()
self.text_win.add_line_separator()
- if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text():
+ if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text() or not self.input.get_text().startswith('//'):
self.send_chat_state('inactive')
def on_gain_focus(self):
self.set_color_state(theme.COLOR_TAB_CURRENT)
curses.curs_set(1)
- if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text():
+ if config.get('send_chat_states', 'true') == 'true' and not self.input.get_text() or not self.input.get_text().startswith('//'):
self.send_chat_state('active')
def on_scroll_up(self):