XEP 0377¶
-
class
slixmpp.plugins.xep_0377.
XEP_0377
(xmpp, config=None)[source]¶ XEP-0377: Spam reporting
-
stanza
= <module 'slixmpp.plugins.xep_0377.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.6.0/slixmpp/plugins/xep_0377/stanza.py'>¶
-
Stanza elements¶
Slixmpp: The Slick XMPP Library Copyright (C) 2020 Mathieu Pasquet This file is part of Slixmpp.
See the file LICENSE for copying permission.
-
class
slixmpp.plugins.xep_0377.stanza.
Report
(xml=None, parent=None)[source]¶ A spam/abuse report.
Example sub stanza:
<report xmlns="urn:xmpp:reporting:0"> <text xml:lang="en"> Never came trouble to my house like this. </text> <spam/> </report>
Stanza Interface:
abuse -- Flag the report as abuse spam -- Flag the report as spam text -- Add a reason to the report
Only one <spam/> or <abuse/> element can be present at once.
-
interfaces
= ('spam', 'abuse', 'text')¶
-
name
= 'report'¶
-
namespace
= 'urn:xmpp:reporting:0'¶
-
plugin_attrib
= 'report'¶
-
sub_interfaces
= {'text'}¶
-