mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 18:16:22 +00:00
event: make log_database_get_previous_chat safer
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user