From 91baaba770056307ccbaff84c3884f714305d2a2 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 18 Jan 2017 23:19:51 +0000 Subject: [PATCH] Fix conditional compile --- src/plugins/api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/api.c b/src/plugins/api.c index 8afa961b..3335907a 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -509,13 +509,17 @@ api_encryption_reset(const char *const barejid) return; } +#ifdef HAVE_LIBGPGME if (chatwin->pgp_send) { chatwin->pgp_send = FALSE; ui_current_print_formatted_line('!', 0, "PGP encryption disabled."); } +#endif +#ifdef HAVE_LIBOTR if (chatwin->is_otr) { chatwin_otr_unsecured(chatwin); otr_end_session(chatwin->barejid); } +#endif }