mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
message: make _handle_groupchat safer
This commit is contained in:
parent
ca9c946ddc
commit
2236242407
@ -990,7 +990,13 @@ _handle_groupchat(xmpp_stanza_t* const stanza)
|
||||
xmpp_ctx_t* ctx = connection_get_ctx();
|
||||
|
||||
const char* room_jid = xmpp_stanza_get_from(stanza);
|
||||
if(!room_jid) {
|
||||
return;
|
||||
}
|
||||
Jid* from_jid = jid_create(room_jid);
|
||||
if(!from_jid) {
|
||||
return;
|
||||
}
|
||||
|
||||
// handle room subject
|
||||
xmpp_stanza_t* subject = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_SUBJECT);
|
||||
|
Loading…
Reference in New Issue
Block a user