summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/xmpp_component.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index ef86213..92c614c 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -324,8 +324,7 @@ void XmppComponent::send_user_join(const std::string& from,
item["jid"] = preped_jid;
}
item.close();
- if (item.has_children())
- x.add_child(std::move(item));
+ x.add_child(std::move(item));
if (self)
{