X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_stats.c;h=f23339279b450d0d1e13b252f4ae884ca94faa43;hb=80881d85337d93d70b67a505ae5178199b1b3155;hp=87591d9e1e4af738b3058c1a47d80343b91a7aee;hpb=21adc78c56f940806a7902356f21fa52e54a76ff;p=ircu2.10.12-pk.git diff --git a/ircd/s_stats.c b/ircd/s_stats.c index 87591d9..f233392 100644 --- a/ircd/s_stats.c +++ b/ircd/s_stats.c @@ -170,6 +170,10 @@ void report_deny_list(struct Client* to) * hunt_server() possiblites were becoming very messy. It now uses a * switch() so as to be easier to read and update as params change. * -Ghostwolf + * + * 2.10.11: Don't check for the oper limitation if it's not our local server. + * thusly once all the hubs have upgraded local opers will be able + * to remote stats anywhere on the network. */ int hunt_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[], char stat) { @@ -201,16 +205,16 @@ int hunt_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[], case 'M': { if (parc == 4) - return hunt_server_cmd(sptr, CMD_STATS, cptr, 1, "%s %C :%s", 2, parc, parv); + return hunt_server_cmd(sptr, CMD_STATS, cptr, MyUser(sptr) ? 1 : 0, "%s %C :%s", 2, parc, parv); else if (parc > 4) - return hunt_server_cmd(sptr, CMD_STATS, cptr, 1, "%s %C %s :%s", 2, parc, parv); + return hunt_server_cmd(sptr, CMD_STATS, cptr, MyUser(sptr) ? 1 : 0, "%s %C %s :%s", 2, parc, parv); else - return hunt_server_cmd(sptr, CMD_STATS, cptr, 1, "%s :%C", 2, parc, parv); + return hunt_server_cmd(sptr, CMD_STATS, cptr, MyUser(sptr) ? 1 : 0, "%s :%C", 2, parc, parv); } /* oper only, standard # of params */ default: - return hunt_server_cmd(sptr, CMD_STATS, cptr, 1, "%s :%C", 2, parc, parv); + return hunt_server_cmd(sptr, CMD_STATS, cptr, MyUser(sptr) ? 1 : 0, "%s :%C", 2, parc, parv); } }