summaryrefslogtreecommitdiff
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
parent4ee3dd695eb8f80c019290ccb9c4233f9067d3d0 (diff)
downloadbiboumi-3429-not-compliant-presence.tar.gz
biboumi-3429-not-compliant-presence.tar.bz2
biboumi-3429-not-compliant-presence.tar.xz
biboumi-3429-not-compliant-presence.zip
Add missing affiliation and role in nick change presence3429-not-compliant-presence
Fix #3429
-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)