Bump patchlevel and fix init_class() dropping configured classes.
authorMichael Poole <mdpoole@troilus.org>
Sat, 1 Oct 2005 14:55:46 +0000 (14:55 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 1 Oct 2005 14:55:46 +0000 (14:55 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1508 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
include/patchlevel.h
ircd/class.c

index f180550a44a851bbaf723e1e8e76d177a42b6f51..d68746ac5630e90adc2fd9848a73bd91a0657018 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-10-01  Michael Poole <mdpoole@troilus.org>
+
+       * include/patchlevel.h (PATCHLEVEL): Update to pre1.
+
+       * ircd/class.c (init_class): Only set default class's ->next
+       pointer when first allocating it.
+
 2005-09-30  Michael Poole <mdpoole@troilus.org>
 
        * ircd/m_who.c (m_who): Handle matchsel & WHO_FIELD_ACC when
index 9508b3e82689e46224270b4253398356b52ca384..04064c5f3873f6a6326a125301292e65992c94fe 100644 (file)
@@ -18,7 +18,7 @@
  * $Id$
  *
  */
-#define PATCHLEVEL "0"
+#define PATCHLEVEL "pre1"
 
 #define RELEASE ".12."
 
index 825b0d0e7ab0189d75e2cd724baf106cf29e8f3d..7415805195574156b751c66ddda76492edca3826 100644 (file)
@@ -91,8 +91,10 @@ void free_class(struct ConnectionClass* p)
  */
 void init_class(void)
 {
-  if (!connClassList)
+  if (!connClassList) {
     connClassList = (struct ConnectionClass*) make_class();
+    connClassList->next   = 0;
+  }
 
   /* We had better not try and free this... */
   ConClass(connClassList) = "default";
@@ -102,7 +104,6 @@ void init_class(void)
   MaxSendq(connClassList) = feature_int(FEAT_DEFAULTMAXSENDQLENGTH);
   connClassList->valid    = 1;
   Links(connClassList)    = 1;
-  connClassList->next     = 0;
 }
 
 /** Mark current connection classes as invalid.