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:
parent
901f9d3d8c
commit
3a6bce5a09
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user