1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

event: make log_database_get_previous_chat safer

This commit is contained in:
Michael Vetter 2021-03-25 16:47:35 +01:00
parent 901f9d3d8c
commit 3a6bce5a09

View File

@ -373,8 +373,10 @@ sv_ev_room_message(ProfMessage* message)
if (prefs_do_room_notify(is_current, mucwin->roomjid, mynick, message->from_jid->resourcepart, message->plain, mention, triggers != NULL)) {
Jid* jidp = jid_create(mucwin->roomjid);
notify_room_message(message->from_jid->resourcepart, jidp->localpart, num, message->plain);
jid_destroy(jidp);
if (jidp) {
notify_room_message(message->from_jid->resourcepart, jidp->localpart, num, message->plain);
jid_destroy(jidp);
}
}
if (triggers) {