Commit b2334707 authored by louiz’'s avatar louiz’

Send the 332 status only for our own presences

parent 8232c2cc
......@@ -454,13 +454,15 @@ void XmppComponent::send_muc_leave(const std::string& muc_name, const std::strin
x["xmlns"] = MUC_USER_NS;
if (self)
{
XmlSubNode status(x, "status");
status["code"] = "110";
}
if (!user_requested)
{
XmlSubNode status(x, "status");
status["code"] = "332";
{
XmlSubNode status(x, "status");
status["code"] = "110";
}
if (!user_requested)
{
XmlSubNode status(x, "status");
status["code"] = "332";
}
}
if (!message_str.empty())
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment