X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_lusers.c;h=573fa52c58c83edc55f365a7321e791595a2ec5c;hb=refs%2Fheads%2Fupstream-ssl;hp=07c562b4439856ed23fc4b570ce741ee1090c5d0;hpb=0e3c217d90ea9af230a002e06104c147c54ab01a;p=ircu2.10.12-pk.git diff --git a/ircd/m_lusers.c b/ircd/m_lusers.c index 07c562b..573fa52 100644 --- a/ircd/m_lusers.c +++ b/ircd/m_lusers.c @@ -84,6 +84,7 @@ #include "client.h" #include "ircd.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 @@ -111,7 +112,10 @@ int m_lusers(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) "%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);