From fc60c9fbf1bc076fe16ef2b1bf3b9c81d00fa61e Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 26 Aug 2015 21:42:16 +0100 Subject: [PATCH] Fixed OTR char display --- src/event/server_events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event/server_events.c b/src/event/server_events.c index 283fc264..80e45401 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -235,7 +235,7 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m gboolean decrypted = FALSE; char *otr_res = otr_on_message_recv(barejid, resource, message, &decrypted); if (otr_res) { - if (decrypted && g_strrstr(message, otr_res) == NULL) { + if (decrypted && g_strrstr(otr_res, message) == NULL) { ui_incoming_msg(chatwin, resource, otr_res, NULL, new_win, PROF_ENC_OTR); } else { ui_incoming_msg(chatwin, resource, otr_res, NULL, new_win, PROF_ENC_NONE); @@ -255,7 +255,7 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m gboolean decrypted = FALSE; char *otr_res = otr_on_message_recv(barejid, resource, message, &decrypted); if (otr_res) { - if (decrypted && g_strrstr(message, otr_res) == NULL) { + if (decrypted && g_strrstr(otr_res, message) == NULL) { ui_incoming_msg(chatwin, resource, otr_res, NULL, new_win, PROF_ENC_OTR); } else { ui_incoming_msg(chatwin, resource, otr_res, NULL, new_win, PROF_ENC_NONE);