Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-08-26 03:23:33 UTC
Modified files:
ChangeLog ircd/class.c ircd/m_trace.c
Log message:
The last class link-count tweaks for the night. I promise.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.681 ircu2.10/ChangeLog:1.682
--- ircu2.10/ChangeLog:1.681 Thu Aug 25 19:36:33 2005
+++ ircu2.10/ChangeLog Thu Aug 25 20:23:23 2005
@@ -4,8 +4,11 @@
suggestion, disallow channel manager talking after Apass is set,
so they set and use Upass sooner.
- * ircd/class.c (report_classes): Return links count plus one to
- match old output.
+ * ircd/class.c (init_class): Default class should have 1 link.
+ (report_classes): Return links count minus one to match old output.
+
+ * ircd/m_trace.c (do_trace): Fix links count here, too (spotted by
+ Reed).
2005-08-25 Michael Poole <[EMAIL PROTECTED]>
Index: ircu2.10/ircd/class.c
diff -u ircu2.10/ircd/class.c:1.33 ircu2.10/ircd/class.c:1.34
--- ircu2.10/ircd/class.c:1.33 Thu Aug 25 19:58:06 2005
+++ ircu2.10/ircd/class.c Thu Aug 25 20:23:23 2005
@@ -18,7 +18,7 @@
*/
/** @file
* @brief Implementation of connection class handling functions.
- * @version $Id: class.c,v 1.33 2005/08/26 02:58:06 entrope Exp $
+ * @version $Id: class.c,v 1.34 2005/08/26 03:23:23 entrope Exp $
*/
#include "config.h"
@@ -101,7 +101,7 @@
MaxLinks(connClassList) = feature_int(FEAT_MAXIMUM_LINKS);
MaxSendq(connClassList) = feature_int(FEAT_DEFAULTMAXSENDQLENGTH);
connClassList->valid = 1;
- Links(connClassList) = 0;
+ Links(connClassList) = 1;
connClassList->next = 0;
}
@@ -257,7 +257,7 @@
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) ? Links(cltmp) - 1 : 0);
+ Links(cltmp) - 1);
}
/** Return maximum SendQ length for a client.
Index: ircu2.10/ircd/m_trace.c
diff -u ircu2.10/ircd/m_trace.c:1.12 ircu2.10/ircd/m_trace.c:1.13
--- ircu2.10/ircd/m_trace.c:1.12 Sat May 7 19:22:57 2005
+++ ircu2.10/ircd/m_trace.c Thu Aug 25 20:23:23 2005
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: m_trace.c,v 1.12 2005/05/08 02:22:57 entrope Exp $
+ * $Id: m_trace.c,v 1.13 2005/08/26 03:23:23 entrope Exp $
*/
/*
@@ -293,8 +293,8 @@
*/
if (IsAnOper(sptr) && doall) {
for (cl = get_class_list(); cl; cl = cl->next) {
- if (Links(cl) > 0)
- send_reply(sptr, RPL_TRACECLASS, ConClass(cl), Links(cl));
+ if (Links(cl) > 1)
+ send_reply(sptr, RPL_TRACECLASS, ConClass(cl), Links(cl) - 1);
}
}
send_reply(sptr, RPL_TRACEEND);
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches