diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-06-30 23:42:32 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-07-01 00:14:32 +0200 |
commit | 31ebd6ab1cb464c66b1555e5d78896a46d092cc9 (patch) | |
tree | 674b49364a0e962c2b836f0fc36c5e38500f4511 /src/xmpp/stanza.h | |
parent | dc79c514be403cff93a1165b47d456182a03fd05 (diff) | |
download | profani-tty-31ebd6ab1cb464c66b1555e5d78896a46d092cc9.tar.gz |
Add XEP-0377: Spam Reporting
Report and block: `/blocked add someone@domain.org report-abuse This is not nice` `/blocked add someone@domain.org report-spam This is not nice` Regular block: `/blocked add someone@domain.org` Implement https://github.com/profanity-im/profanity/issues/1434
Diffstat (limited to 'src/xmpp/stanza.h')
-rw-r--r-- | src/xmpp/stanza.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/stanza.h b/src/xmpp/stanza.h index aeddf6a2..47560ce0 100644 --- a/src/xmpp/stanza.h +++ b/src/xmpp/stanza.h @@ -122,6 +122,7 @@ #define STANZA_NAME_AFTER "after" #define STANZA_NAME_USERNAME "username" #define STANZA_NAME_PROPOSE "propose" +#define STANZA_NAME_REPORT "report" // error conditions #define STANZA_NAME_BAD_REQUEST "bad-request" @@ -245,6 +246,9 @@ #define STANZA_DATAFORM_SOFTWARE "urn:xmpp:dataforms:softwareinfo" +#define STANZA_REPORTING_ABUSE "urn:xmpp:reporting:abuse" +#define STANZA_REPORTING_SPAM "urn:xmpp:reporting:spam" + typedef struct caps_stanza_t { char* hash; |