tools: renamed tools.jid.JID attribute "short" to "bare"
This commit is contained in:
parent
a154d9acbb
commit
36cea6fc91
1 changed files with 94 additions and 94 deletions
|
|
@ -82,7 +82,7 @@ class Chat(Window, QuickChat):
|
|||
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 @@ class Chat(Window, QuickChat):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue