~singpolyma/biboumi

b2334707107e65dd15590b7472c990bbf79549eb — louiz’ 6 years ago 8232c2c
Send the 332 status only for our own presences
1 files changed, 9 insertions(+), 7 deletions(-)

M src/xmpp/xmpp_component.cpp
M src/xmpp/xmpp_component.cpp => src/xmpp/xmpp_component.cpp +9 -7
@@ 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())
      {