mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
message: make _handle_chat safer
This commit is contained in:
parent
ee87e5b036
commit
8a6d256fc1
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user