Always add a 210 status in our self join presence
Because it's much much simpler than to track if we changed the nick that was requested in the join request. And client will probably not get confused, I hope.
This commit is contained in:
@@ -340,8 +340,10 @@ void XmppComponent::send_user_join(const std::string& from,
|
|||||||
|
|
||||||
if (self)
|
if (self)
|
||||||
{
|
{
|
||||||
XmlSubNode status(x, "status");
|
XmlSubNode status_self(x, "status");
|
||||||
status["code"] = "110";
|
status_self["code"] = "110";
|
||||||
|
XmlSubNode status_nick_modified(x, "status");
|
||||||
|
status_nick_modified["code"] = "210";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->send_stanza(presence);
|
this->send_stanza(presence);
|
||||||
|
|||||||
Reference in New Issue
Block a user