From 55158767cc49119fdf976e1616a610e7dd5a5117 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 26 Aug 2015 23:23:12 +0100 Subject: Renamed enc_message parameter for incoming messages --- src/event/server_events.c | 14 +++++++------- src/event/server_events.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/event/server_events.c b/src/event/server_events.c index e8d2bbcf..7fb2427c 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -193,9 +193,9 @@ sv_ev_incoming_carbon(char *barejid, char *resource, char *message) #ifdef HAVE_LIBGPGME static void -_sv_ev_incoming_pgp(ProfChatWin *chatwin, gboolean new_win, char *barejid, char *resource, char *message, char *enc_message) +_sv_ev_incoming_pgp(ProfChatWin *chatwin, gboolean new_win, char *barejid, char *resource, char *message, char *pgp_message) { - char *decrypted = p_gpg_decrypt(enc_message); + char *decrypted = p_gpg_decrypt(pgp_message); if (decrypted) { if (chatwin->enc_mode == PROF_ENC_NONE) { win_println((ProfWin*)chatwin, 0, "PGP encryption enabled."); @@ -239,7 +239,7 @@ _sv_ev_incoming_plain(ProfChatWin *chatwin, gboolean new_win, char *barejid, cha } void -sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_message) +sv_ev_incoming_message(char *barejid, char *resource, char *message, char *pgp_message) { gboolean new_win = FALSE; ProfChatWin *chatwin = wins_get_chat(barejid); @@ -252,11 +252,11 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m // OTR suported, PGP supported #ifdef HAVE_LIBOTR #ifdef HAVE_LIBGPGME - if (enc_message) { + if (pgp_message) { if (chatwin->enc_mode == PROF_ENC_OTR) { win_println((ProfWin*)chatwin, 0, "PGP encrypted message received whilst in OTR session."); } else { // PROF_ENC_NONE, PROF_ENC_PGP - _sv_ev_incoming_pgp(chatwin, new_win, barejid, resource, message, enc_message); + _sv_ev_incoming_pgp(chatwin, new_win, barejid, resource, message, pgp_message); } } else { if (chatwin->enc_mode == PROF_ENC_PGP) { @@ -281,8 +281,8 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m // OTR unsupported, PGP supported #ifndef HAVE_LIBOTR #ifdef HAVE_LIBGPGME - if (enc_message) { - _sv_ev_incoming_pgp(chatwin, new_win, barejid, resource, message, enc_message); + if (pgp_message) { + _sv_ev_incoming_pgp(chatwin, new_win, barejid, resource, message, pgp_message); } else { _sv_ev_incoming_plain(chatwin, new_win, barejid, resource, message); } diff --git a/src/event/server_events.h b/src/event/server_events.h index 4a3f86c2..12d7ffa5 100644 --- a/src/event/server_events.h +++ b/src/event/server_events.h @@ -50,7 +50,7 @@ void sv_ev_room_history(const char * const room_jid, const char * const nick, GDateTime *timestamp, const char * const message); void sv_ev_room_message(const char * const room_jid, const char * const nick, const char * const message); -void sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_message); +void sv_ev_incoming_message(char *barejid, char *resource, char *message, char *pgp_message); void sv_ev_incoming_private_message(const char * const fulljid, char *message); void sv_ev_delayed_message(char *fulljid, char *message, GDateTime *timestamp); void sv_ev_delayed_private_message(const char * const fulljid, char *message, GDateTime *timestamp); -- cgit 1.4.1-2-gfad0