def do_buddies_search(self, text): for row in self.config.sections["server"]["userlist"]: if row and isinstance(row, list): user = str(row[0]) self.queue.append( slskmessages.UserSearch(user, self.token, text))
def do_buddies_search(self, id, text): for i in self.frame.np.config.sections["server"]["userlist"]: user = i[0] self.frame.np.queue.put(slskmessages.UserSearch(user, id, text))
def do_peer_search(self, text, users): for user in users: self.queue.append(slskmessages.UserSearch(user, self.token, text))
def DoBuddiesSearch(self, id, text): for users in self.frame.userlist.userlist: self.frame.np.queue.put(slskmessages.UserSearch(users[0], id, text))