comparison sat_frontends/jp/base.py @ 2588:4011e4ee3151

jp (base): fixed jid encoding
author Goffi <goffi@goffi.org>
date Tue, 22 May 2018 10:01:00 +0200
parents 26edcf3a30eb
children 75d2ac872965
comparison
equal deleted inserted replaced
2587:e70023e84974 2588:4011e4ee3151
620 expanded = names2jid[_jid] 620 expanded = names2jid[_jid]
621 elif _jid in nodes2jid: 621 elif _jid in nodes2jid:
622 expanded = nodes2jid[_jid] 622 expanded = nodes2jid[_jid]
623 else: 623 else:
624 expanded = jid 624 expanded = jid
625 return expanded.decode('utf-8') 625 return expanded
626 626
627 def check(jid): 627 def check(jid):
628 if not jid.is_valid: 628 if not jid.is_valid:
629 log.error (_("%s is not a valid JID !"), jid) 629 log.error (_("%s is not a valid JID !"), jid)
630 self.quit(1) 630 self.quit(1)