And fix the display of the part message in that case
This commit is contained in:
parent
195d461a86
commit
324fcf817c
1 changed files with 6 additions and 0 deletions
|
@ -1130,6 +1130,9 @@ class PrivateTab(ChatTab):
|
||||||
self.get_room().add_message(_('\x191%(spec)s \x193%(nick)s\x195 has left the room') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT.replace('"', '\\"')})
|
self.get_room().add_message(_('\x191%(spec)s \x193%(nick)s\x195 has left the room') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT.replace('"', '\\"')})
|
||||||
else:
|
else:
|
||||||
self.get_room().add_message(_('\x191%(spec)s \x193%(nick)s\x195 has left the room (%(status)s)"') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT, 'status': status_message.replace('"', '\\"')})
|
self.get_room().add_message(_('\x191%(spec)s \x193%(nick)s\x195 has left the room (%(status)s)"') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT, 'status': status_message.replace('"', '\\"')})
|
||||||
|
if self.core.current_tab() is self:
|
||||||
|
self.refresh()
|
||||||
|
self.core.doupdate()
|
||||||
|
|
||||||
def user_rejoined(self, nick):
|
def user_rejoined(self, nick):
|
||||||
"""
|
"""
|
||||||
|
@ -1137,6 +1140,9 @@ class PrivateTab(ChatTab):
|
||||||
"""
|
"""
|
||||||
self.activate()
|
self.activate()
|
||||||
self.get_room().add_message('\x194%(spec)s \x193%(nick)s\x195 joined the room' % {'nick':nick, 'spec':theme.CHAR_JOIN})
|
self.get_room().add_message('\x194%(spec)s \x193%(nick)s\x195 joined the room' % {'nick':nick, 'spec':theme.CHAR_JOIN})
|
||||||
|
if self.core.current_tab() is self:
|
||||||
|
self.refresh()
|
||||||
|
self.core.doupdate()
|
||||||
|
|
||||||
def activate(self):
|
def activate(self):
|
||||||
self.on = True
|
self.on = True
|
||||||
|
|
Loading…
Reference in a new issue