From 70c63691f87748c696b3f20d42d11fd528018bd6 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 6 Sep 2011 14:42:10 +0200 Subject: An 'inactive' chat state is now sent to the current room when going away --- src/core.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core.py') 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) -- cgit v1.2.3