+2007-03-26 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_stats.c (m_stats): Move check for STAT_FLAG_LOCONLY (and
+ the assignment to "param") to the hunted server.
+
2007-03-26 Michael Poole <mdpoole@troilus.org>
* ircd/s_auth.c (iauth_parse): Check for missing arguments when
((sd->sd_flags & STAT_FLAG_OPERFEAT) && feature_bool(sd->sd_control))))
return send_reply(sptr, ERR_NOPRIVILEGES);
+ /* Ok, track down who's supposed to get this... */
+ if (hunt_server_cmd(sptr, CMD_STATS, cptr, feature_int(FEAT_HIS_REMOTE),
+ param ? "%s %C :%s" : "%s :%C", 2, parc, parv) !=
+ HUNTED_ISME)
+ return 0; /* Someone else--cool :) */
+
/* Check if they are a local user */
if ((sd->sd_flags & STAT_FLAG_LOCONLY) && !MyUser(sptr))
return send_reply(sptr, ERR_NOPRIVILEGES);
if ((sd->sd_flags & STAT_FLAG_VARPARAM) && parc > 3 && !EmptyString(parv[3]))
param = parv[3];
- /* Ok, track down who's supposed to get this... */
- if (hunt_server_cmd(sptr, CMD_STATS, cptr, feature_int(FEAT_HIS_REMOTE),
- param ? "%s %C :%s" : "%s :%C", 2, parc, parv) !=
- HUNTED_ISME)
- return 0; /* Someone else--cool :) */
-
assert(sd->sd_func != 0);
/* Ok, dispatch the stats function */