about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-08-25 20:35:45 +0100
committerJames Booth <boothj5@gmail.com>2015-08-25 20:35:45 +0100
commit872ab8e5297342c22cf45f86754f0958ca2a0617 (patch)
tree80b547932442cd21afd1141dab403f1a5f1b1900 /src/command
parentf6a91145b60ce924daaee6b2d5b9449c6170d9f9 (diff)
downloadprofani-tty-872ab8e5297342c22cf45f86754f0958ca2a0617.tar.gz
Added HAVE_LIBGPGME check for setting account key
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index f3911aad..ad1e3ff0 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -486,12 +486,16 @@ cmd_account(ProfWin *window, const char * const command, gchar **args)
                     }
                     cons_show("");
                 } else if (strcmp(property, "pgpkeyid") == 0) {
+#ifdef HAVE_LIBGPGME
                     if (!p_gpg_valid_key(value)) {
                         cons_show("Invalid PGP key ID specified, see /pgp keys");
                     } else {
                         accounts_set_pgp_keyid(account_name, value);
                         cons_show("Updated PGP key ID for account %s: %s", account_name, value);
                     }
+#else
+                    cons_show("PGP support is not included in this build.");
+#endif
                     cons_show("");
                 } else if (valid_resource_presence_string(property)) {
                     int intval;