struct trie_find *f = NULL;
if (trie_findfirst(&f, &chan->members) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
if (!(~cl->caps & positive) && !(cl->caps & negative))
sendbuf(cl);
} while (trie_findnext(&f) == 1);
struct trie_find *f = NULL;
if (trie_findfirst(&f, ls) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
if (client != cl) {
if (cookie) {
if (cookie != cl->cookie)
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client_map) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
cl->cookie = 0;
} while (trie_findnext(&f) == 1);
cookie++;
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client->channels) == 1)
do {
- struct channel *chan = f->n->value;
+ struct channel *chan = f->value;
sendbuf_list_sans_self_caps(client, &chan->members, cookie, positive, negative);
} while (trie_findnext(&f) == 1);
}
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client_map) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
if (cl->umode & UMODE_WALLOPS)
sendbuf(cl);
} while (trie_findnext(&f) == 1);
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client_map) == 1)
do {
- struct client_data *cl2 = f->n->value;
+ struct client_data *cl2 = f->value;
if (cl2->umode & UMODE_OPER)
sendbuf(cl2);
} while (trie_findnext(&f) == 1);
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client->channels) == 1)
do {
- struct channel *chan = f->n->value;
+ struct channel *chan = f->value;
channel_part(client, chan, "I fell for a classic prank", NULL);
} while(trie_findfirst(&f, &client->channels) == 1);
free(f);
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client->invites) == 1)
do {
- struct channel *chan = f->n->value;
+ struct channel *chan = f->value;
rpl_invitelist(client, chan), sendbuf(client);
} while(trie_findnext(&f) == 1);
return rpl_endofinvitelist(client), sendbuf(client), 0;
struct trie_find *f = NULL;
if (trie_findfirst(&f, &channel_map) == 1)
do {
- struct channel *chan = f->n->value;
+ struct channel *chan = f->value;
if (!(chan->dmode & DMODE_SECRET) || map_get(&chan->members, client->key))
rpl_list(client, chan), sendbuf(client);
} while(trie_findnext(&f) == 1);
struct trie_find *f = NULL;
if (trie_findfirst(&f, &chan->members) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
rpl_whoreply(client, cl, chan), sendbuf(client);
} while(trie_findnext(&f) == 1);
}
struct trie_find *f = NULL;
if (trie_findfirst(&f, &cl->channels) == 1)
do {
- struct channel *chan = f->n->value;
+ struct channel *chan = f->value;
if ((cl->umode & UMODE_INVISIBLE || chan->dmode & DMODE_SECRET) && !map_get(&chan->members, client->key))
continue;
rpl_whoischannels(client, cl, chan), sendbuf(client);
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client_map) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
registered++;
if (cl->umode & UMODE_INVISIBLE)
invisible++;
struct trie_find *f = NULL;
if (trie_findfirst(&f, &client->channels) == 1)
do {
- struct channel *chan = f->n->value;
+ struct channel *chan = f->value;
map_unset(&chan->members, client->key, NULL);
if (map_set(&chan->members, key, client, NULL) == -1)
abort();
databuf.len = 0;
if (trie_findfirst(&f, &chan->members) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
if (rpl_namreply(client, chan, cl)) {
sendbuf(client);
databuf.len = 0;
struct trie_find *f = NULL;
if (trie_findfirst(&f, &chan->invitees) == 1)
do {
- struct client_data *cl = f->n->value;
+ struct client_data *cl = f->value;
map_unset(&cl->invites, chan->key, NULL);
} while(trie_findnext(&f) == 1);
free(chan->key);