mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 19:36:22 +00:00
Check for valid PGP key on start
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user