+2005-03-22 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/channel.c (send_channel_modes): Fix test for when to send
+ membership mode suffix, to avoid sending it more than once.
+
2005-03-22 Michael Poole <mdpoole@troilus.org>
(Many thanks to nex and Reed for helping hunt this down and
doing the testing of various patches.)
* ircd/ircd_res.c (check_resolver_timeout): Simplify the test for
whether to use timer_chg() or timer_add().
+ On second thought, use timer_add() unconditionally; the server
+ connection loop does.
(timeout_resolver): Do not try to re-schedule the DNS timeout
unless it is the expiration event.
(do_query_number): Properly initialize request->state.
* Do we have a nick with a new mode ?
* Or are we starting a new BURST line?
*/
- if (new_mode || !feat_oplevels)
+ if (new_mode)
{
/*
* This means we are at the _first_ member that has only
msgq_append(&me, mb, tbuf);
new_mode = 0;
}
- else if (flag_cnt > 1 && last_oplevel != member->oplevel)
+ else if (feat_oplevels && flag_cnt > 1 && last_oplevel != member->oplevel)
{
/*
* This can't be the first member of a (continued) BURST
{
if (when > CurrentTime + AR_TTL)
when = CurrentTime + AR_TTL;
- if (t_onqueue(&res_timeout))
- timer_chg(&res_timeout, TT_ABSOLUTE, when);
- else
- timer_add(&res_timeout, timeout_resolver, NULL, TT_ABSOLUTE, when);
+ timer_add(&res_timeout, timeout_resolver, NULL, TT_ABSOLUTE, when);
}
/** Drop pending DNS lookups which have timed out.