XEP 0377

1.6 Documentation

«  XEP 0369   ::   Contents   ::   XEP 0380  »

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.

get_abuse()[source]
get_spam()[source]
interfaces = ('spam', 'abuse', 'text')
name = 'report'
namespace = 'urn:xmpp:reporting:0'
plugin_attrib = 'report'
set_abuse(value)[source]
set_spam(value)[source]
sub_interfaces = {'text'}
class slixmpp.plugins.xep_0377.stanza.Text(xml=None, parent=None)[source]
name = 'text'
namespace = 'urn:xmpp:reporting:0'
plugin_attrib = 'text'

«  XEP 0369   ::   Contents   ::   XEP 0380  »