mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 19:46:22 +00:00
message: make _handle_chat safer
This commit is contained in:
@@ -1290,6 +1290,9 @@ _handle_chat(xmpp_stanza_t* const stanza, gboolean is_mam, gboolean is_carbon, c
|
||||
return;
|
||||
}
|
||||
Jid* jid = jid_create(from);
|
||||
if (!jid) {
|
||||
return;
|
||||
}
|
||||
|
||||
// private message from chat room use full jid (room/nick)
|
||||
if (muc_active(jid->barejid)) {
|
||||
|
||||
Reference in New Issue
Block a user