diff frontends/sortilege_old/chat.py @ 688:f7878ad3c846

tools: renamed tools.jid.JID attribute "short" to "bare"
author souliane <souliane@mailoo.org>
date Tue, 29 Oct 2013 16:26:55 +0100
parents 84a6e83157c2
children
line wrap: on
line diff
--- a/frontends/sortilege_old/chat.py	Mon Oct 28 19:04:49 2013 +0100
+++ b/frontends/sortilege_old/chat.py	Tue Oct 29 16:26:55 2013 +0100
@@ -82,7 +82,7 @@
             header=self.__getHeader(self.content[idx])
             msg=self.content[idx][2]
             part=0  #part of the text
-            if JID(self.content[idx][1]).short==self.host.profiles[self.host.profile]['whoami'].short:
+            if JID(self.content[idx][1]).bare==self.host.profiles[self.host.profile]['whoami'].bare:
                 att_header=curses.color_pair(1)
             else:
                 att_header=curses.color_pair(2)
@@ -140,7 +140,7 @@
             timestamp=str(current_time)
             if self.last_history and current_time - float(self.last_history) < 5: #FIXME: Q&D fix to avoid double print on new chat window
                 return
-        self.content.append([timestamp,jid.short,msg])
+        self.content.append([timestamp,jid.bare,msg])
         self.update()
 
     def handleKey(self, k):