From e59d43ff3e07610b9cedbd04f64619fe9743694d Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Tue, 15 Sep 2009 18:42:47 +0000 Subject: * fixed unavailable status in sendPresence * fixed jabber:client filtering for components --- sleekxmpp/componentxmpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/componentxmpp.py') diff --git a/sleekxmpp/componentxmpp.py b/sleekxmpp/componentxmpp.py index ad897586..dc80dd9f 100755 --- a/sleekxmpp/componentxmpp.py +++ b/sleekxmpp/componentxmpp.py @@ -73,8 +73,8 @@ 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.getchildren(): - child = self.incoming_filter(child) + for sub in xmlobj: + self.incoming_filter(sub) return xmlobj -- cgit v1.2.3