summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-10-15 14:27:10 +0200
committermathieui <mathieui@mathieui.net>2012-10-15 14:27:10 +0200
commit6eac68999315c1ec11b91dde434d73372b3a89a3 (patch)
tree29c1928573cd4cb833dde8c7d9125079255b28a6 /src
parent8b50961de936695272fa6b731ab8a5376cee8a02 (diff)
downloadpoezio-6eac68999315c1ec11b91dde434d73372b3a89a3.tar.gz
poezio-6eac68999315c1ec11b91dde434d73372b3a89a3.tar.bz2
poezio-6eac68999315c1ec11b91dde434d73372b3a89a3.tar.xz
poezio-6eac68999315c1ec11b91dde434d73372b3a89a3.zip
Put back the “truc@chose.com is now online” messages
Diffstat (limited to 'src')
-rw-r--r--src/core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py
index 86365c8e..bb26b210 100644
--- a/src/core.py
+++ b/src/core.py
@@ -2657,12 +2657,12 @@ class Core(object):
})
self.events.trigger('normal_presence', presence, resource)
self.add_information_message_to_conversation_tab(jid.full, '\x195}%s is \x194}online' % (jid.full))
- if time.time() - self.connection_time > 20:
+ if time.time() - self.connection_time > 10:
# We do not display messages if we recently logged in
if presence['status']:
- self.information("\x193}%s \x195}is \x194}online\x195} (\x19o%s\x195})" % (resource.jid.bare, presence['status']), "Roster")
+ self.information("\x193}%s \x195}is \x194}online\x195} (\x19o%s\x195})" % (safeJID(resource.jid).bare, presence['status']), "Roster")
else:
- self.information("\x193}%s \x195}is \x194}online\x195}" % resource.jid.bare, "Roster")
+ self.information("\x193}%s \x195}is \x194}online\x195}" % safeJID(resource.jid).bare, "Roster")
self.add_information_message_to_conversation_tab(jid.bare, '\x195}%s is \x194}online' % (jid.bare))
if isinstance(self.current_tab(), tabs.RosterInfoTab):
self.refresh_window()