Do not change the nick when joining a second room with a different nick
As the doc says, the nick changes must be explicit in an already joined room, and not when joining a room.
This commit is contained in:
1 parent
f653906f9d
commit
eca31ce8db
4 files changed
+34
-3
No files matched your search
@@ -149,7 +149,7 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
|
||||
{
|
||||
const std::string own_nick = bridge->get_own_nick(iid);
|
||||
if (!own_nick.empty() && own_nick != to.resource)
|
||||
bridge->send_irc_nick_change(iid, to.resource);
|
||||
bridge->send_irc_nick_change(iid, to.resource, from.resource);
|
||||
const XmlNode* x = stanza.get_child("x", MUC_NS);
|
||||
const XmlNode* password = x ? x->get_child("password", MUC_NS): nullptr;
|
||||
bridge->join_irc_channel(iid, to.resource, password ? password->get_inner(): "",
|
||||
|
||||
Reference in new issue
Block a user