1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge pull request #1550 from DebXWoody/messagewithoutbody

Message received without body error log
This commit is contained in:
Michael Vetter 2021-06-04 08:23:56 +02:00 committed by GitHub
commit 8ffb1bdd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1086,7 +1086,7 @@ _handle_groupchat(xmpp_stanza_t* const stanza)
#endif
if (!message->plain && !message->body) {
log_error("Message received without body for room: %s", from_jid->str);
log_info("Message received without body for room: %s", from_jid->str);
goto out;
} else if (!message->plain) {
message->plain = strdup(message->body);
@ -1244,7 +1244,7 @@ _handle_muc_private_message(xmpp_stanza_t* const stanza)
message->body = xmpp_message_get_body(stanza);
if (!message->plain && !message->body) {
log_error("Message received without body from: %s", message->from_jid->str);
log_info("Message received without body from: %s", message->from_jid->str);
goto out;
} else if (!message->plain) {
message->plain = strdup(message->body);