summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2020-11-20 12:43:14 +0300
committerdefanor <defanor@uberspace.net>2020-11-20 12:43:14 +0300
commit74b672b8ca65079ba5d46bbb1203ede95a29aea3 (patch)
tree7ccc3301357138bc10be5e7e2d9b89db2fe64470 /examples
parent53e218af8591f209644c63032f264fcbd154b827 (diff)
Don't include own JID into <signcrypt/>, always encrypt for self
Diffstat (limited to 'examples')
-rw-r--r--examples/weechat.c5
1 files changed, 2 insertions, 3 deletions
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) {