def clear_muc_child(self):
if self.muc_child:<EOL><INDENT>self.muc_child.free_borrowed()<EOL>self.muc_child=None<EOL><DEDENT>if not self.xmlnode.children:<EOL><INDENT>return<EOL><DEDENT>n=self.xmlnode.children<EOL>while n:<EOL><INDENT>if n.name not in ("<STR_LIT:x>","<STR_LIT>"):<EOL><INDENT>n=n.next<EOL>continue<EOL><DEDENT>ns=n.ns()<EOL>if not ns:<EOL><INDENT>n=n.next<EOL>continue<EOL><DEDENT>ns_uri=ns.getContent()<EOL>if ns_uri in (MUC_NS,MUC_USER_NS,MUC_ADMIN_NS,MUC_OWNER_NS):<EOL><INDENT>n.unlinkNode()<EOL>n.freeNode()<EOL><DEDENT>n=n.next<EOL><DEDENT>
Remove the MUC specific stanza payload element.