about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/event/server_events.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 6fd795dc..8d830d5e 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -205,6 +205,9 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m
         } else { // PROF_ENC_NONE, PROF_ENC_PGP
             char *decrypted = p_gpg_decrypt(barejid, enc_message);
             if (decrypted) {
+                if (enc_mode == PROF_ENC_NONE) {
+                    win_println((ProfWin*)chatwin, "PGP encryption enabled.");
+                }
                 ui_incoming_msg(chatwin, resource, decrypted, NULL, new_win);
                 // TODO pgp message logger
                 chat_log_msg_in(barejid, decrypted);
@@ -217,6 +220,7 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m
         }
     } else {
         if (enc_mode == PROF_ENC_PGP) {
+            win_println((ProfWin*)chatwin, "PGP encryption disabled.");
             ui_incoming_msg(chatwin, resource, message, NULL, new_win);
             chat_log_msg_in(barejid, message);
             chatwin->enc_mode = PROF_ENC_NONE;