summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-09-12 10:56:02 +0200
committermathieui <mathieui@mathieui.net>2011-09-12 10:56:02 +0200
commit7a312992921debb1d904a0f2b7083272113e253e (patch)
tree2b06d711f99575b6d533bb1c6551f6057d3e7717 /src/tabs.py
parentd24b3c42958f50c3979b37ab7666379d78b3fad1 (diff)
downloadpoezio-7a312992921debb1d904a0f2b7083272113e253e.tar.gz
poezio-7a312992921debb1d904a0f2b7083272113e253e.tar.bz2
poezio-7a312992921debb1d904a0f2b7083272113e253e.tar.xz
poezio-7a312992921debb1d904a0f2b7083272113e253e.zip
Add a color state for disconnected rooms (Fixes #2166)
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 0d1c5751..77b1610d 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -868,6 +868,8 @@ class MucTab(ChatTab):
if from_nick == room.own_nick: # we are banned
room.disconnect()
self.core.disable_private_tabs(room.name)
+ self.tab_win.refresh()
+ self.core.doupdate()
if by:
kick_msg = _('\x191%(spec)s \x193You\x195 have been banned by \x194%(by)s') % {'spec': theme.CHAR_KICK, 'by':by}
else:
@@ -892,6 +894,8 @@ class MucTab(ChatTab):
if from_nick == room.own_nick: # we are kicked
room.disconnect()
self.core.disable_private_tabs(room.name)
+ self.tab_win.refresh()
+ self.core.doupdate()
if by:
kick_msg = _('\x191%(spec)s \x193You\x195 have been kicked by \x193%(by)s') % {'spec': theme.CHAR_KICK, 'by':by}
else:
@@ -917,6 +921,8 @@ class MucTab(ChatTab):
# We are now out of the room. Happens with some buggy (? not sure) servers
room.disconnect()
self.core.disable_private_tabs(from_room)
+ self.tab_win.refresh()
+ self.core.doupdate()
hide_exit_join = config.get('hide_exit_join', -1) if config.get('hide_exit_join', -1) >= -1 else -1
if hide_exit_join == -1 or user.has_talked_since(hide_exit_join):
if not jid.full: