* namespace tweak for components

This commit is contained in:
Nathan Fritz 2009-10-29 03:12:32 +00:00
parent 44aa526635
commit a22100bb38

View file

@ -72,7 +72,7 @@ class ComponentXMPP(basexmpp, XMLStream):
def incoming_filter(self, xmlobj): def incoming_filter(self, xmlobj):
if xmlobj.tag.startswith('{jabber:client}'): if xmlobj.tag.startswith('{jabber:client}'):
xmlobj.tag = xmlobj.tag.replace('jabber:client', 'jabber:component:accept') xmlobj.tag = xmlobj.tag.replace('jabber:client', self.default_ns)
for sub in xmlobj: for sub in xmlobj:
self.incoming_filter(sub) self.incoming_filter(sub)
return xmlobj return xmlobj