struct ChanNode *chan;
struct UserNode *user;
struct WHOQueueEntry *next;
- userlist_callback_t callback;
-}
+ userlist_callback_t *callback;
+};
static struct WHOQueueEntry *first_entry = NULL, *last_entry = NULL;
first_entry = entry;
}
-static struct WHOQueueEntry* getNextWHOQueueEntry(struct ClientSocket *client, int remove) {
+static struct WHOQueueEntry* getNextWHOQueueEntry(struct ClientSocket *client, int freeEntry) {
if(!first_entry) return NULL;
struct WHOQueueEntry *entry;
for(entry = first_entry; entry; entry = entry->next) {
break;
}
if(entry == NULL) return NULL;
- if(remove) {
+ if(freeEntry) {
first_entry = first_entry->next;
if(last_entry == first_entry)
last_entry = NULL;
entry->chan = chan;
entry->callback = callback;
//WHO ".$channel->getName().",".$id." d%tuhnaf,".$id
- putsock(bot, "WHO %s,%d %tuhnaf,%d", chan->name, entry->type, entry->type);
+ putsock(bot, "WHO %s,%d %%tuhnaf,%d", chan->name, entry->type, entry->type);
}
void recv_whohandler_354(struct ClientSocket *client, char **argv, unsigned int argc) {