summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-09-12 17:17:49 +0200
committermathieui <mathieui@mathieui.net>2011-09-12 17:17:49 +0200
commit1df856969f173fdfde9a1a26cbb4b30a900fafbb (patch)
tree78d63d9383bf81b266f635b9c70d7c210b01a079 /src/tabs.py
parente372d2e8bc4da40835f841bb33972cd65bb66705 (diff)
downloadpoezio-1df856969f173fdfde9a1a26cbb4b30a900fafbb.tar.gz
poezio-1df856969f173fdfde9a1a26cbb4b30a900fafbb.tar.bz2
poezio-1df856969f173fdfde9a1a26cbb4b30a900fafbb.tar.xz
poezio-1df856969f173fdfde9a1a26cbb4b30a900fafbb.zip
The active chat state is not sent anymore with a message when being xa or away.
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index a6e871f0..a3ef712d 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -620,6 +620,7 @@ class MucTab(ChatTab):
self.core.room_error(res, self.get_name())
def command_say(self, line):
+ needed = 'inactive' if self.core.status.show in ('xa', 'away') else 'active'
msg = self.core.xmpp.make_message(self.get_name())
msg['type'] = 'groupchat'
if line.find('\x19') == -1:
@@ -628,9 +629,10 @@ class MucTab(ChatTab):
msg['body'] = xhtml.clean_text(line)
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'
+ msg['chat_state'] = needed
self.cancel_paused_delay()
msg.send()
+ self.chat_state = needed
def command_ignore(self, arg):
"""