[Pkg-privacy-commits] [irssi-plugin-otr] 53/267: xchat: send encrypted messages to the correct window.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:41:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository irssi-plugin-otr.

commit b8355d0a5842938d57a0b30b7e892da7c322b4ad
Author: Uli Meis <a.sporto+bee at gmail.com>
Date:   Thu Feb 5 10:55:52 2009 +0100

    xchat: send encrypted messages to the correct window.
---
 xchat_otr.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/xchat_otr.c b/xchat_otr.c
index 6bfea04..6d85c88 100644
--- a/xchat_otr.c
+++ b/xchat_otr.c
@@ -158,6 +158,7 @@ int hook_privmsg(char *word[], char *word_eol[], void *userdata)
 	IRC_CTX ircctx = { 
 		.nick = (char*)own_nick,
 		.address = (char*)server };
+	xchat_context *query_ctx;
 
 	if (!extract_nick(nick,word[1]))
 		return XCHAT_EAT_NONE;
@@ -177,6 +178,11 @@ int hook_privmsg(char *word[], char *word_eol[], void *userdata)
 		return XCHAT_EAT_NONE;
 	}
 
+	query_ctx = xchat_find_context(ph, server, nick);
+
+	if (query_ctx)
+		xchat_set_context(ph, query_ctx);
+
 	xchat_emit_print(ph, "Private Message", nick, newmsg, NULL, NULL);
 
 	otrl_message_free(newmsg);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git



More information about the Pkg-privacy-commits mailing list