Fix /otr fpr and the remote user nick color
This commit is contained in:
parent
cb8884bae4
commit
07ab1138a7
1 changed files with 3 additions and 4 deletions
|
@ -439,7 +439,7 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
body = txt.decode()
|
body = txt.decode()
|
||||||
tab.add_message(body, nickname=tab.nick, jid=msg['from'],
|
tab.add_message(body, nickname=tab.nick, jid=msg['from'],
|
||||||
forced_user=user, typ=0)
|
forced_user=user, typ=0, nick_color=theming.get_theme().COLOR_REMOTE_USER)
|
||||||
hl(tab)
|
hl(tab)
|
||||||
self.core.refresh_window()
|
self.core.refresh_window()
|
||||||
del msg['body']
|
del msg['body']
|
||||||
|
@ -489,9 +489,8 @@ class Plugin(BasePlugin):
|
||||||
fpr = self.account.getPrivkey()
|
fpr = self.account.getPrivkey()
|
||||||
self.api.information('Your OTR key fingerprint is %s' % fpr, 'OTR')
|
self.api.information('Your OTR key fingerprint is %s' % fpr, 'OTR')
|
||||||
elif arg == 'fpr':
|
elif arg == 'fpr':
|
||||||
tab = self.api.current_tab()
|
if name in self.contexts:
|
||||||
if tab.get_name() in self.contexts:
|
ctx = self.contexts[name]
|
||||||
ctx = self.contexts[tab.get_name()]
|
|
||||||
self.api.information('The key fingerprint for %s is %s' % (name, ctx.getCurrentKey()) , 'OTR')
|
self.api.information('The key fingerprint for %s is %s' % (name, ctx.getCurrentKey()) , 'OTR')
|
||||||
elif arg == 'drop':
|
elif arg == 'drop':
|
||||||
# drop the privkey (and obviously, end the current conversations before that)
|
# drop the privkey (and obviously, end the current conversations before that)
|
||||||
|
|
Loading…
Reference in a new issue