diff --git a/sleekxmpp/componentxmpp.py b/sleekxmpp/componentxmpp.py index 3351485..28b5817 100755 --- a/sleekxmpp/componentxmpp.py +++ b/sleekxmpp/componentxmpp.py @@ -73,7 +73,7 @@ class ComponentXMPP(basexmpp, XMLStream): def incoming_filter(self, xmlobj): if xmlobj.tag.startswith('{jabber:client}'): xmlobj.tag = xmlobj.tag.replace('jabber:client', 'jabber:component:accept') - for child in xmlobj.children(): + for child in xmlobj.getchildren(): child = self.incoming_filter(child) return xmlobj