From a384787413050703726d5f7430d761268a832555 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Thu, 22 Jul 2021 06:58:45 +0100 Subject: [PATCH] pgp deredundancy --- channel.c | 2 ++ omemo.h | 2 ++ pgp.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/channel.c b/channel.c index 49eb4ab..ab918ab 100644 --- a/channel.c +++ b/channel.c @@ -948,6 +948,8 @@ void channel__send_message(struct t_account *account, struct t_channel *channel, xmpp_stanza_add_child(message, message__x); xmpp_stanza_release(message__x); + xmpp_message_set_body(message, PGP_ADVICE); + weechat_printf(channel->buffer, "[~]\t%s%s: PGP", weechat_color("gray"), account_jid(account)); } if (url) diff --git a/omemo.h b/omemo.h index 3138849..2ce48fa 100644 --- a/omemo.h +++ b/omemo.h @@ -5,6 +5,8 @@ #ifndef _WEECHAT_XMPP_OMEMO_H_ #define _WEECHAT_XMPP_OMEMO_H_ +extern const char *OMEMO_ADVICE; + struct t_identity { uint8_t *key; diff --git a/pgp.h b/pgp.h index e5d84c8..d1bd996 100644 --- a/pgp.h +++ b/pgp.h @@ -5,6 +5,8 @@ #ifndef _WEECHAT_XMPP_PGP_H_ #define _WEECHAT_XMPP_PGP_H_ +extern const char *PGP_ADVICE; + struct t_pgp { struct rnp_ffi_st *context;