about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2017-01-18 23:16:23 +0000
committerJames Booth <boothj5@gmail.com>2017-01-18 23:16:23 +0000
commit68496db0b427a18c09c00fb47264c3aea352393e (patch)
tree4ec79b3398573fe8b311f9d971103ead5f68a4b4 /src
parentfccf56be1059a2c254b9ed08fc385ee4e0513dee (diff)
downloadprofani-tty-68496db0b427a18c09c00fb47264c3aea352393e.tar.gz
Fix conditional compile
Diffstat (limited to 'src')
-rw-r--r--src/plugins/api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/api.c b/src/plugins/api.c
index d65a07ba..3488d84c 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;
         win_println((ProfWin*)chatwin, THEME_DEFAULT, '!', "PGP encryption disabled.");
     }
+#endif
 
+#ifdef HAVE_LIBOTR
     if (chatwin->is_otr) {
         chatwin_otr_unsecured(chatwin);
         otr_end_session(chatwin->barejid);
     }
+#endif
 }