From 87e16546b9a1d1d21960ee7b7dc0724f151b4995 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 8 Apr 2015 19:47:21 +0200 Subject: Fix a possible traceback in the OTR plugin --- plugins/otr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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) -- cgit v1.2.3