diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2015-06-23 22:13:50 +0000 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2015-06-23 22:13:50 +0000 |
commit | 6a73ca1b5281c5a64cb7bc6e70775c5022ab276a (patch) | |
tree | c7abb88762d0d9f875870ec4507119f18a059134 | |
parent | 2d3537515d9b0dbba51265ed7819dd80b31a33d8 (diff) | |
download | profani-tty-6a73ca1b5281c5a64cb7bc6e70775c5022ab276a.tar.gz |
pgp: Fixed compilation error when libotr is not supported
-rw-r--r-- | src/event/server_events.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index 004e743b..c1aa7c01 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -254,9 +254,8 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m // OTR unsupported, PGP supported #ifndef HAVE_LIBOTR #ifdef HAVE_LIBGPGME - prof_enc_t enc_mode = chatwin->enc_mode; if (enc_message) { - char *decrypted = p_gpg_decrypt(jid->barejid, enc_message); + char *decrypted = p_gpg_decrypt(barejid, enc_message); if (decrypted) { ui_incoming_msg(chatwin, resource, decrypted, NULL, new_win); chat_log_pgp_msg_in(barejid, decrypted); |