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;