show status when opening a new tab when user is not online

This commit is contained in:
Yann Leboulanger 2005-02-14 20:11:11 +00:00
parent 8f420e3956
commit f29229c12e
1 changed files with 4 additions and 1 deletions

View File

@ -403,6 +403,9 @@ class tabbed_chat_Window:
if self.plugin.queues[self.account].has_key(user.jid):
self.read_queue(self.plugin.queues[self.account][user.jid])
if user.show != 'online':
self.print_conversation(_("%s is now %s (%s)") % (user.name, \
user.show, user.status), user.jid, 'status')
def on_msg_key_press_event(self, widget, event):
"""When a key is pressed :
@ -432,7 +435,7 @@ class tabbed_chat_Window:
if event.keyval == gtk.keysyms.Escape:
jid = self.get_active_jid()
if len(self.xmls) == 1:
button.get_toplevel().destroy()
widget.get_toplevel().destroy()
else:
nb.remove_page(nb.get_current_page())
del self.plugin.windows[self.account]['chats'][jid]