diff options
author | James Booth <boothj5@gmail.com> | 2015-03-23 23:51:35 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-03-23 23:51:35 +0000 |
commit | b87130b601f3e3905bb002f62fe2e11db112a939 (patch) | |
tree | 85489118ef34262237593dc34f92cc10ba067dee | |
parent | 027fa2a7005a475154a344cf0a886e8b9d3962de (diff) | |
download | profani-tty-b87130b601f3e3905bb002f62fe2e11db112a939.tar.gz |
Added check for HAVE_LIBGPGME in presence.c
-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); |