Fix previous commit (off-by-one in wrong direction).
authorMichael Poole <mdpoole@troilus.org>
Fri, 26 Aug 2005 02:58:06 +0000 (02:58 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 26 Aug 2005 02:58:06 +0000 (02:58 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1467 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ircd/class.c

index 772f44d175f06217c7d75ee935c5c9e2d6d05494..4a72ef8b0fc9595a0662d344827812b36900b3c4 100644 (file)
@@ -257,7 +257,7 @@ report_classes(struct Client *sptr, const struct StatDesc *sd,
   for (cltmp = connClassList; cltmp; cltmp = cltmp->next)
     send_reply(sptr, RPL_STATSYLINE, 'Y', ConClass(cltmp), PingFreq(cltmp),
               ConFreq(cltmp), MaxLinks(cltmp), MaxSendq(cltmp),
-              Links(cltmp) + 1);
+              Links(cltmp) ? Links(cltmp) - 1 : 0);
 }
 
 /** Return maximum SendQ length for a client.