summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-09-06 14:42:10 +0200
committermathieui <mathieui@mathieui.net>2011-09-06 14:42:10 +0200
commit70c63691f87748c696b3f20d42d11fd528018bd6 (patch)
tree3e17f9521407308c06e4727f5fb07271f208b900 /src
parentee8eb0934d6bc39a5aef072226511124d983a025 (diff)
downloadpoezio-70c63691f87748c696b3f20d42d11fd528018bd6.tar.gz
poezio-70c63691f87748c696b3f20d42d11fd528018bd6.tar.bz2
poezio-70c63691f87748c696b3f20d42d11fd528018bd6.tar.xz
poezio-70c63691f87748c696b3f20d42d11fd528018bd6.zip
An 'inactive' chat state is now sent to the current room when going away
Diffstat (limited to 'src')
-rw-r--r--src/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 53848ae6..acd77e13 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1052,6 +1052,9 @@ class Core(object):
pres['status'] = msg
pres['type'] = show
pres.send()
+ current = self.current_tab()
+ if isinstance(current, tabs.MucTab) and current.get_room().joined:
+ current.send_chat_state('inactive')
for tab in self.tabs:
if isinstance(tab, tabs.MucTab) and tab.get_room().joined:
muc.change_show(self.xmpp, tab.get_room().name, tab.get_room().own_nick, show, msg)