From 74b672b8ca65079ba5d46bbb1203ede95a29aea3 Mon Sep 17 00:00:00 2001 From: defanor Date: Fri, 20 Nov 2020 12:43:14 +0300 Subject: Don't include own JID into , always encrypt for self --- examples/weechat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/weechat.c b/examples/weechat.c index b2cee3a..2e9b57e 100644 --- a/examples/weechat.c +++ b/examples/weechat.c @@ -471,9 +471,8 @@ command_sc_cb (const void *wr_ptr, void *data, xmlNodeAddContent(body, argv_eol[1]); char *rcpt[3]; - rcpt[0] = s->initial_jid.bare; - rcpt[1] = to; - rcpt[2] = NULL; + rcpt[0] = to; + rcpt[1] = NULL; char *b64 = rexmpp_openpgp_encrypt_sign(s, body, rcpt); if (b64 == NULL) { -- cgit v1.2.3