summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-04-17 15:49:38 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-04-17 15:49:38 +0200
commitda76355af0759a9265bec470a72af129d797fa04 (patch)
treefa652eed31bacd7f9f4ef669bdd1875595f1541f /src/tabs.py
parentd1a797205af8e3a016b3301592d27b17d79bdd48 (diff)
downloadpoezio-da76355af0759a9265bec470a72af129d797fa04.tar.gz
poezio-da76355af0759a9265bec470a72af129d797fa04.tar.bz2
poezio-da76355af0759a9265bec470a72af129d797fa04.tar.xz
poezio-da76355af0759a9265bec470a72af129d797fa04.zip
Remove the paused timed event when we send the message
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 03fa0856..5f11e1f0 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -336,7 +336,7 @@ class ChatTab(Tab):
if self.timed_event_paused:
event = self.timed_event_paused()
if event:
- self.core.timed_events.remove(event)
+ self.core.remove_timed_event(event)
del event
self.timed_event_paused = None
@@ -619,6 +619,7 @@ class MucTab(ChatTab):
msg['xhtml_im'] = xhtml.poezio_colors_to_html(line)
if config.get('send_chat_states', 'true') == 'true' and self.remote_wants_chatstates is not False:
msg['chat_state'] = 'active'
+ self.cancel_paused_delay()
msg.send()
def command_ignore(self, arg):
@@ -986,6 +987,7 @@ class PrivateTab(ChatTab):
msg.send()
self.core.add_message_to_text_buffer(self.get_room(), line, None, self.core.own_nick)
logger.log_message(JID(self.get_name()).bare, self.core.own_nick, line)
+ self.cancel_paused_delay()
self.text_win.refresh(self._room)
self.input.refresh()
@@ -1421,6 +1423,7 @@ class ConversationTab(ChatTab):
msg.send()
self.core.add_message_to_text_buffer(self.get_room(), line, None, self.core.own_nick)
logger.log_message(JID(self.get_name()).bare, self.core.own_nick, line)
+ self.cancel_paused_delay()
self.text_win.refresh(self._room)
self.input.refresh()