# Slixmpp: The Slick XMPP Library# Copyright (C) 2020 Mathieu Pasquet <mathieui@mathieui.net># This file is part of Slixmpp.# See the file LICENSE for copying permissiofromslixmpp.stanzaimportMessage,Iqfromslixmpp.xmlstreamimport(ElementBase,register_stanza_plugin,)fromslixmpp.plugins.xep_0421.stanzaimportOccupantIdfromslixmpp.plugins.xep_0424.stanzaimportRetract,RetractedNS='urn:xmpp:message-moderate:1'
[docs]defregister_plugins():# for moderation requestsregister_stanza_plugin(Iq,Moderate)register_stanza_plugin(Moderate,Retract)# for moderation eventsregister_stanza_plugin(Retract,Moderated)register_stanza_plugin(Moderated,OccupantId)# for tombstonesregister_stanza_plugin(Retracted,Moderated)