Send the 332 status only for our own presences
This commit is contained in:
@@ -453,6 +453,7 @@ void XmppComponent::send_muc_leave(const std::string& muc_name, const std::strin
|
|||||||
XmlSubNode x(presence, "x");
|
XmlSubNode x(presence, "x");
|
||||||
x["xmlns"] = MUC_USER_NS;
|
x["xmlns"] = MUC_USER_NS;
|
||||||
if (self)
|
if (self)
|
||||||
|
{
|
||||||
{
|
{
|
||||||
XmlSubNode status(x, "status");
|
XmlSubNode status(x, "status");
|
||||||
status["code"] = "110";
|
status["code"] = "110";
|
||||||
@@ -462,6 +463,7 @@ void XmppComponent::send_muc_leave(const std::string& muc_name, const std::strin
|
|||||||
XmlSubNode status(x, "status");
|
XmlSubNode status(x, "status");
|
||||||
status["code"] = "332";
|
status["code"] = "332";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!message_str.empty())
|
if (!message_str.empty())
|
||||||
{
|
{
|
||||||
XmlSubNode status(presence, "status");
|
XmlSubNode status(presence, "status");
|
||||||
|
|||||||
Reference in New Issue
Block a user