예제 #1
0
    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))
예제 #2
0
 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))
예제 #3
0
 def do_peer_search(self, text, users):
     for user in users:
         self.queue.append(slskmessages.UserSearch(user, self.token, text))
예제 #4
0
	def DoBuddiesSearch(self, id, text):
		for users in self.frame.userlist.userlist:
			self.frame.np.queue.put(slskmessages.UserSearch(users[0], id, text))