summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-04-08 19:47:21 +0200
committermathieui <mathieui@mathieui.net>2015-04-08 19:47:21 +0200
commit87e16546b9a1d1d21960ee7b7dc0724f151b4995 (patch)
treeb1c8b27c4ac3dacb7c0344262ffa3644f1fafead /plugins
parent7b05fa47c157050378c0c695d31e62317b829020 (diff)
downloadpoezio-87e16546b9a1d1d21960ee7b7dc0724f151b4995.tar.gz
poezio-87e16546b9a1d1d21960ee7b7dc0724f151b4995.tar.bz2
poezio-87e16546b9a1d1d21960ee7b7dc0724f151b4995.tar.xz
poezio-87e16546b9a1d1d21960ee7b7dc0724f151b4995.zip
Fix a possible traceback in the OTR plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/otr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index 9ef13c8d..cceadb99 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -893,7 +893,7 @@ class Plugin(BasePlugin):
if secs > 0:
event = self.api.create_delayed_event(secs, notify_otr_timeout)
self.api.add_timed_event(event)
- body = self.contexts[name].sendMessage(0, b'?OTRv?').decode()
+ body = self.get_context(name).sendMessage(0, b'?OTRv?').decode()
self.core.xmpp.send_message(mto=name, mtype='chat', mbody=body)
tab.add_message(OTR_REQUEST % format_dict, typ=0)