Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 2359:f35b17fd1e73
MUC: Don't send empty body when setting room topic
Thanks to Minoru for the report.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 28 Aug 2021 22:53:44 +0200 |
parents | 87cc62145c76 |
children |
comparison
equal
deleted
inserted
replaced
2358:b010ffcae282 | 2359:f35b17fd1e73 |
---|---|
398 #endif // HAVE_GPGME | 398 #endif // HAVE_GPGME |
399 | 399 |
400 #endif // HAVE_GPGME || defined XEP0085 | 400 #endif // HAVE_GPGME || defined XEP0085 |
401 | 401 |
402 x = lm_message_new_with_sub_type(fjid, LM_MESSAGE_TYPE_MESSAGE, subtype); | 402 x = lm_message_new_with_sub_type(fjid, LM_MESSAGE_TYPE_MESSAGE, subtype); |
403 lm_message_node_add_child(x->node, "body", | 403 if (text) { |
404 enc ? "This message is PGP-encrypted." : text); | 404 lm_message_node_add_child(x->node, "body", |
405 enc ? "This message is PGP-encrypted." : text); | |
406 } | |
405 | 407 |
406 if (subject) | 408 if (subject) |
407 lm_message_node_add_child(x->node, "subject", subject); | 409 lm_message_node_add_child(x->node, "subject", subject); |
408 | 410 |
409 if (enc) { | 411 if (enc) { |