summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-16 02:01:50 +0200
committermathieui <mathieui@mathieui.net>2012-05-16 02:01:50 +0200
commitc04f0e97837dfc0c73defa3aaeada5c3848e2c59 (patch)
tree3b8cc6e6ef5ea416d71e60f77c2518f849692a09 /src/tabs.py
parent58a41fe0652021481ebfa96fb3d238cddd93ca95 (diff)
downloadpoezio-c04f0e97837dfc0c73defa3aaeada5c3848e2c59.tar.gz
poezio-c04f0e97837dfc0c73defa3aaeada5c3848e2c59.tar.bz2
poezio-c04f0e97837dfc0c73defa3aaeada5c3848e2c59.tar.xz
poezio-c04f0e97837dfc0c73defa3aaeada5c3848e2c59.zip
Prevent the rooms from going “offline”
Add a blacklist inside the roster that contains the bare JIDs of all the rooms ever joined in this session, so that no JID using this server will ever be shown as getting “offline”. If there is a cleaner way to do that (discriminating JIDs), I welcome it.
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index f798df69..be8085e8 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1171,6 +1171,7 @@ class MucTab(ChatTab):
self.core.events.trigger('muc_join', presence, self)
if from_nick == self.own_nick:
self.joined = True
+ roster.blacklist.add(JID(from_room).server)
if self.get_name() in self.core.initial_joins:
self.core.initial_joins.remove(self.get_name())
self._state = 'normal'