diff options
author | James Booth <boothj5@gmail.com> | 2015-08-23 22:54:41 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-08-23 22:54:41 +0100 |
commit | 57ca441f0236a86f1091a2664da227bac4e2ea59 (patch) | |
tree | add794e0c9c6e04ae8b56dc5e9d1adccb824bec9 /src/command | |
parent | c07638746a37c333dc15d7b8597d0e310fe5286c (diff) | |
download | profani-tty-57ca441f0236a86f1091a2664da227bac4e2ea59.tar.gz |
Check for valid PGP key on start
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 7167e26d..e2323ce6 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -4337,8 +4337,8 @@ cmd_pgp(ProfWin *window, const char * const command, gchar **args) } ProfAccount *account = accounts_get_account(jabber_get_account_name()); - if (!account->pgp_keyid) { - ui_current_print_formatted_line('!', 0, "You must specify a PGP key ID for this account to start PGP encryption."); + if (!p_gpg_valid_key(account->pgp_keyid)) { + ui_current_print_formatted_line('!', 0, "You must specify a valid PGP key ID for this account to start PGP encryption."); account_free(account); return TRUE; } |