summaryrefslogtreecommitdiff
path: root/plugins/otr.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-08-18 22:32:26 +0200
committermathieui <mathieui@mathieui.net>2013-08-18 22:32:26 +0200
commit07ab1138a7f0598dd6ab9923ec876c5c24519e99 (patch)
tree8041e583cd117c1457b85c198e53f299115afb2a /plugins/otr.py
parentcb8884bae405d6b0ac65329c35078e09111c1076 (diff)
downloadpoezio-07ab1138a7f0598dd6ab9923ec876c5c24519e99.tar.gz
poezio-07ab1138a7f0598dd6ab9923ec876c5c24519e99.tar.bz2
poezio-07ab1138a7f0598dd6ab9923ec876c5c24519e99.tar.xz
poezio-07ab1138a7f0598dd6ab9923ec876c5c24519e99.zip
Fix /otr fpr and the remote user nick color
Diffstat (limited to 'plugins/otr.py')
-rw-r--r--plugins/otr.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index 91c814e9..d668c0ae 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -439,7 +439,7 @@ class Plugin(BasePlugin):
body = txt.decode()
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)
self.core.refresh_window()
del msg['body']
@@ -489,9 +489,8 @@ class Plugin(BasePlugin):
fpr = self.account.getPrivkey()
self.api.information('Your OTR key fingerprint is %s' % fpr, 'OTR')
elif arg == 'fpr':
- tab = self.api.current_tab()
- if tab.get_name() in self.contexts:
- ctx = self.contexts[tab.get_name()]
+ if name in self.contexts:
+ ctx = self.contexts[name]
self.api.information('The key fingerprint for %s is %s' % (name, ctx.getCurrentKey()) , 'OTR')
elif arg == 'drop':
# drop the privkey (and obviously, end the current conversations before that)