diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xmpp/presence.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index fcb6b937..a8418673 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -49,7 +49,9 @@ #include "xmpp/connection.h" #include "xmpp/stanza.h" #include "xmpp/xmpp.h" +#ifdef HAVE_LIBGPGME #include "pgp/gpg.h" +#endif static Autocomplete sub_requests_ac; @@ -226,6 +228,7 @@ presence_update(const resource_presence_t presence_type, const char * const msg, stanza_attach_status(ctx, presence, msg); +#ifdef HAVE_LIBGPGME char *account_name = jabber_get_account_name(); ProfAccount *account = accounts_get_account(account_name); if (account->pgp_keyid) { @@ -244,6 +247,7 @@ presence_update(const resource_presence_t presence_type, const char * const msg, free(signed_status); } +#endif stanza_attach_priority(ctx, presence, pri); stanza_attach_last_activity(ctx, presence, idle); |