comparison frontends/src/quick_frontend/quick_chat.py @ 539:428fa16363e7

quick frontend: fixed getHistory call
author Goffi <goffi@goffi.org>
date Mon, 12 Nov 2012 10:55:09 +0100
parents 3bd8f84f920d
children ca13633d3b6b
comparison
equal deleted inserted replaced
538:2c4016921403 539:428fa16363e7
112 if self.target.startswith(const_PRIVATE_PREFIX): 112 if self.target.startswith(const_PRIVATE_PREFIX):
113 target = unescapePrivate(self.target) 113 target = unescapePrivate(self.target)
114 else: 114 else:
115 target = self.target.short 115 target = self.target.short
116 116
117 self.host.bridge.getHistory(self.host.profiles[profile]['whoami'].short, target, 20, callback=onHistory, errback=onHistoryError) 117 self.host.bridge.getHistory(self.host.profiles[profile]['whoami'].short, target, 20, profile=profile, callback=onHistory, errback=onHistoryError)
118 118
119 def _get_nick(self, jid): 119 def _get_nick(self, jid):
120 """Return nick of this jid when possible""" 120 """Return nick of this jid when possible"""
121 if self.target.startswith(const_PRIVATE_PREFIX): 121 if self.target.startswith(const_PRIVATE_PREFIX):
122 unescaped = unescapePrivate(self.target) 122 unescaped = unescapePrivate(self.target)