X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_lusers.c;h=573fa52c58c83edc55f365a7321e791595a2ec5c;hb=a36ad5e29241b0c89379947b13887cb6930ef3e0;hp=02da8d7b6d1632441b11980c87273f6c6c32b3f8;hpb=56f512008e81aeae915b2b7f6bcdd54b549188d3;p=ircu2.10.12-pk.git diff --git a/ircd/m_lusers.c b/ircd/m_lusers.c index 02da8d7..573fa52 100644 --- a/ircd/m_lusers.c +++ b/ircd/m_lusers.c @@ -83,7 +83,8 @@ #include "client.h" #include "ircd.h" -#include "ircd_policy.h" +#include "ircd_features.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "msg.h" @@ -94,7 +95,7 @@ #include "s_serv.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /* * m_lusers - generic message handler @@ -107,11 +108,14 @@ int m_lusers(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) { int longoutput = MyUser(sptr) || IsOper(sptr); if (parc > 2) - if (hunt_server_cmd(sptr, CMD_LUSERS, cptr, HEAD_IN_SAND_REMOTE, "%s :%C", - 2, parc, parv) != HUNTED_ISME) + if (hunt_server_cmd(sptr, CMD_LUSERS, cptr, feature_int(FEAT_HIS_REMOTE), + "%s :%C", 2, parc, parv) != HUNTED_ISME) return 0; - send_reply(sptr, RPL_LUSERCLIENT, UserStats.clients - UserStats.inv_clients, + assert(UserStats.inv_clients <= UserStats.clients + UserStats.unknowns); + + send_reply(sptr, RPL_LUSERCLIENT, + UserStats.clients - UserStats.inv_clients + UserStats.unknowns, UserStats.inv_clients, UserStats.servers); if (longoutput && UserStats.opers) send_reply(sptr, RPL_LUSEROP, UserStats.opers);