def completion_muc_vcard(self, the_input): users = [user.nick for user in self.api.current_tab().users] users.extend([ resource.jid for contact in roster.get_contacts() for resource in contact.resources ]) return Completion(the_input.auto_completion, users, '', quotify=False)
def resources(self): l = [] for contact in roster.get_contacts(): for resource in contact.resources: l.append(resource.jid) return l
def completion_vcard(self, the_input): contacts = [contact.bare_jid for contact in roster.get_contacts()] return Completion(the_input.auto_completion, contacts, '', quotify=False)
def completion_vcard(self, the_input): contacts = [contact.bare_jid for contact in roster.get_contacts()] return Completion( the_input.auto_completion, contacts, '', quotify=False)