2 SleekXMPP: The Sleek XMPP Library
3 Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
4 This file is part of SleekXMPP.
6 See the file LICENSE for copying permission.
9 from sleekxmpp
.stanza
import Message
, Presence
, Iq
10 from sleekxmpp
.xmlstream
import ElementBase
13 class Forwarded(ElementBase
):
15 namespace
= 'urn:xmpp:forward:0'
16 plugin_attrib
= 'forwarded'
17 interfaces
= set(['stanza'])
21 if isinstance(stanza
, (Message
, Presence
, Iq
)):
25 def set_stanza(self
, value
):
32 if isinstance(stanza
, (Message
, Presence
, Iq
)):
33 found_stanzas
.append(stanza
)
34 for stanza
in found_stanzas
:
35 self
.iterables
.remove(stanza
)
36 self
.xml
.remove(stanza
.xml
)