+2009-03-17 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/send.c (sendcmdto_match_butone): Move match_it() to the end
+ of the if() to minimize the number of expensive function calls.
+
2009-03-17 Michael Poole <mdpoole@troilus.org>
* patches/diffs/antispambot.diff: Forward port a patch by Dianora
/* send buffer along */
bump_sentalong(one);
for (cptr = GlobalClientList; cptr; cptr = cli_next(cptr)) {
- if (!IsRegistered(cptr) || IsServer(cptr) ||
- !match_it(from, cptr, to, who) || cli_fd(cli_from(cptr)) < 0 ||
- cli_sentalong(cptr) == sentalong_marker)
+ if (!IsRegistered(cptr) || IsServer(cptr) || cli_fd(cli_from(cptr)) < 0 ||
+ cli_sentalong(cptr) == sentalong_marker ||
+ !match_it(from, cptr, to, who))
continue; /* skip it */
cli_sentalong(cptr) = sentalong_marker;