summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-04-19 11:49:07 +0200
committerlouiz’ <louiz@louiz.org>2020-04-19 11:49:07 +0200
commit2ef41e1afca824acc0cd0ac9a714016459a24d25 (patch)
tree830f8b1e368850b0fc63997cc03765c424765ece /src
parent4ee3dd695eb8f80c019290ccb9c4233f9067d3d0 (diff)
downloadbiboumi-2ef41e1afca824acc0cd0ac9a714016459a24d25.tar.gz
biboumi-2ef41e1afca824acc0cd0ac9a714016459a24d25.tar.bz2
biboumi-2ef41e1afca824acc0cd0ac9a714016459a24d25.tar.xz
biboumi-2ef41e1afca824acc0cd0ac9a714016459a24d25.zip
Add missing affiliation and role in nick change presence3429-not-compliant-presence
Fix #3429
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/xmpp_component.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index 767fb2e..de9a7a6 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -481,6 +481,8 @@ void XmppComponent::send_nick_change(const std::string& muc_name,
x["xmlns"] = MUC_USER_NS;
XmlSubNode item(x, "item");
item["nick"] = new_nick;
+ item["affiliation"] = affiliation;
+ item["role"] = role;
XmlSubNode status(x, "status");
status["code"] = "303";
if (self)