about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-07-01 19:31:55 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-07-01 19:31:55 +0200
commit07bb790565aaf8a480c8502b7f36111884246297 (patch)
treecb688971a0f9093076b5385eda8a194f41df5bbb
parent3a9cffe01380254f292559255e03e7d5ff71dc9a (diff)
downloadprofani-tty-07bb790565aaf8a480c8502b7f36111884246297.tar.gz
XEP-0377: Add forgotten namespace
-rw-r--r--src/xmpp/blocking.c1
-rw-r--r--src/xmpp/stanza.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/blocking.c b/src/xmpp/blocking.c
index b16f95cb..7c55b1bf 100644
--- a/src/xmpp/blocking.c
+++ b/src/xmpp/blocking.c
@@ -132,6 +132,7 @@ blocked_add(char* jid, blocked_report reportkind, const char* const message)
     if (reportkind != BLOCKED_NO_REPORT) {
         xmpp_stanza_t* report = xmpp_stanza_new(ctx);
         xmpp_stanza_set_name(report, STANZA_NAME_REPORT);
+        xmpp_stanza_set_ns(report, STANZA_NS_REPORTING);
         if (reportkind == BLOCKED_REPORT_ABUSE) {
             xmpp_stanza_set_attribute(report, STANZA_ATTR_REASON, STANZA_REPORTING_ABUSE);
         } else {
diff --git a/src/xmpp/stanza.h b/src/xmpp/stanza.h
index 47560ce0..52008b1c 100644
--- a/src/xmpp/stanza.h
+++ b/src/xmpp/stanza.h
@@ -243,6 +243,7 @@
 #define STANZA_NS_VOICEREQUEST            "http://jabber.org/protocol/muc#request"
 #define STANZA_NS_JINGLE_MESSAGE          "urn:xmpp:jingle-message:0"
 #define STANZA_NS_JINGLE_RTP              "urn:xmpp:jingle:apps:rtp:1"
+#define STANZA_NS_REPORTING               "urn:xmpp:reporting:1"
 
 #define STANZA_DATAFORM_SOFTWARE "urn:xmpp:dataforms:softwareinfo"