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:
commit
8ffb1bdd37
@ -1086,7 +1086,7 @@ _handle_groupchat(xmpp_stanza_t* const stanza)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!message->plain && !message->body) {
|
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;
|
goto out;
|
||||||
} else if (!message->plain) {
|
} else if (!message->plain) {
|
||||||
message->plain = strdup(message->body);
|
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);
|
message->body = xmpp_message_get_body(stanza);
|
||||||
|
|
||||||
if (!message->plain && !message->body) {
|
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;
|
goto out;
|
||||||
} else if (!message->plain) {
|
} else if (!message->plain) {
|
||||||
message->plain = strdup(message->body);
|
message->plain = strdup(message->body);
|
||||||
|
Loading…
Reference in New Issue
Block a user