Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Wed, 17 Jan 2001 15:47:48 +0000 (15:47 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Wed, 17 Jan 2001 15:47:48 +0000 (15:47 +0000)
Log message:

Separate whowas_clean() from MyFree() call; default LOCOP_KILL to on.

Testing:

These changes are "clearly" correct, and so I have not even compile-checked
them; sorry.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@377 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/ircd_features.c
ircd/whowas.c

index 2ff50136d1cdb1b724e89524d30fa927c8806bae..fd950f53c8cd55cb878acbbdebc4443ff3e6baa9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-01-17  Kevin L. Mitchell  <klmitch@mit.edu>
+
+       * ircd/whowas.c (whowas_free): MyFree() is a macro that expects
+       its argument to be an lvalue, which means we can't use
+       whowas_clean()'s handy-dandy "return ww" feature
+
+       * ircd/ircd_features.c: default LOCOP_KILL to TRUE--oops...
+
 2001-01-15  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/client.c: fixed feattab; basically, when I changed features
index 47a2ffe62be93f4c2ed32d79a3e2f8bcca88a4dd..b6a4d0a235c40b541528b6b3afe1d33268967f72 100644 (file)
@@ -302,7 +302,7 @@ static struct FeatureDesc {
   F_B(OPERS_SEE_IN_SECRET_CHANNELS, 0, 1, 0),
 
   /* features that affect local opers on this server */
-  F_B(LOCOP_KILL, 0, 0, 0),
+  F_B(LOCOP_KILL, 0, 1, 0),
   F_B(LOCOP_REHASH, 0, 1, 0),
   F_B(LOCOP_RESTART, 0, 0, 0),
   F_B(LOCOP_DIE, 0, 0, 0),
index b819e1753afd6ac851b17e88afaf81642f87c21e..d8c0db20063c5a01371533de07c740bebfaf7c50 100644 (file)
@@ -196,7 +196,8 @@ whowas_free(struct Whowas *ww)
 
   Debug((DEBUG_LIST, "Destroying whowas structure for %s", ww->name));
 
-  MyFree(whowas_clean(ww));
+  whowas_clean(ww);
+  MyFree(ww);
 
   wwList.ww_alloc--;
 }