- for(entry = first_entry; entry; entry = entry->next) {
- if((entry->type & WHOQUEUETYPE_USERAUTH) && entry->user == user) {
- int i = 0;
- for(i = 1; i < MAXCALLBACKS; i++) {
- if(!entry->callback[i]) {
- entry->callback[i] = callback;
- entry->data[i] = data;
- return;
+ for(bot = getBots(SOCKET_FLAG_READY, NULL); bot; bot = getBots(SOCKET_FLAG_READY, bot)) {
+ for(entry = bot->whoqueue_first; entry; entry = entry->next) {
+ if((entry->type & WHOQUEUETYPE_USERAUTH) && entry->user == user) {
+ int i = 0;
+ for(i = 1; i < MAXCALLBACKS; i++) {
+ if(!entry->callback[i]) {
+ entry->callback[i] = callback;
+ entry->data[i] = data;
+ return;
+ }