mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Merge branch 'master' into plugins
This commit is contained in:
commit
b15d24397b
@ -245,7 +245,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);
|
||||
@ -265,7 +265,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);
|
||||
|
Loading…
Reference in New Issue
Block a user