* fixed unavailable status in sendPresence

* fixed jabber:client filtering for components
This commit is contained in:
Nathan Fritz
2009-09-15 18:42:47 +00:00
parent cb360c9479
commit e59d43ff3e
2 changed files with 5 additions and 2 deletions

View File

@@ -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