summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/room.py1
-rw-r--r--src/tabs.py6
-rw-r--r--src/theme.py1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/room.py b/src/room.py
index be376b54..58b96adb 100644
--- a/src/room.py
+++ b/src/room.py
@@ -35,6 +35,7 @@ class Room(TextBuffer):
we can know if we can join it, send messages to it, etc
"""
self.users = []
+ self.color_state = theme.COLOR_TAB_DISCONNECTED
self.joined = False
def get_single_line_topic(self):
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:
diff --git a/src/theme.py b/src/theme.py
index 244d6006..2502e5c6 100644
--- a/src/theme.py
+++ b/src/theme.py
@@ -58,6 +58,7 @@ COLOR_TAB_CURRENT = 56
COLOR_TAB_NEW_MESSAGE = 49
COLOR_TAB_HIGHLIGHT = 21
COLOR_TAB_PRIVATE = 28
+COLOR_TAB_DISCONNECTED = 30
# Nickname colors
LIST_COLOR_NICKNAMES = [