summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-23 22:50:14 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-23 22:50:14 +0200
commita9d2cf8ff237e164e187c9e48745641e7db6deb8 (patch)
tree759fa46126d904c223c8f622c47533b1f08758f0 /src/core.py
parentb5beb9d8bf490019675ddbce274899f5a6ff9930 (diff)
downloadpoezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.tar.gz
poezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.tar.bz2
poezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.tar.xz
poezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.zip
make colors work with 3-digits color numbers
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core.py b/src/core.py
index f707070c..5e2566ff 100644
--- a/src/core.py
+++ b/src/core.py
@@ -360,13 +360,13 @@ class Core(object):
return
# If a resource got offline, display the message in the conversation with this
# precise resource.
- self.add_information_message_to_conversation_tab(jid.full, '\x195%s is \x191offline' % (resource.get_jid().full))
+ self.add_information_message_to_conversation_tab(jid.full, '\x195}%s is \x191}offline' % (resource.get_jid().full))
contact.remove_resource(resource)
# Display the message in the conversation with the bare JID only if that was
# the only resource online (i.e. now the contact is completely disconnected)
if not contact.get_highest_priority_resource(): # No resource left: that was the last one
- self.add_information_message_to_conversation_tab(jid.bare, '\x195%s is \x191offline' % (jid.bare))
- self.information('\x193%s \x195is \x191offline' % (resource.get_jid().bare), "Roster")
+ self.add_information_message_to_conversation_tab(jid.bare, '\x195}%s is \x191}offline' % (jid.bare))
+ self.information('\x193}%s \x195}is \x191}offline' % (resource.get_jid().bare), "Roster")
def on_got_online(self, presence):
jid = presence['from']
@@ -384,13 +384,13 @@ class Core(object):
resource.set_status(status_message)
resource.set_presence(status)
resource.set_priority(priority)
- self.add_information_message_to_conversation_tab(jid.full, '\x195%s is \x194online' % (jid.full))
+ self.add_information_message_to_conversation_tab(jid.full, '\x195}%s is \x194}online' % (jid.full))
if not contact.get_highest_priority_resource():
# No connected resource yet: the user's just connecting
if time.time() - self.connection_time > 12:
# We do not display messages if we recently logged in
- self.information("\x193%s \x195is \x194online\x195 (\x190%s\x195)" % (resource.get_jid().bare, status), "Roster")
- self.add_information_message_to_conversation_tab(jid.bare, '\x195%s is \x194online' % (jid.bare))
+ self.information("\x193}%s \x195}is \x194}online\x195} (\x190}%s\x195})" % (resource.get_jid().bare, status), "Roster")
+ self.add_information_message_to_conversation_tab(jid.bare, '\x195%s is \x194}online' % (jid.bare))
contact.add_resource(resource)
def add_information_message_to_conversation_tab(self, jid, msg):