From: Kevin L. Mitchell Date: Wed, 17 Jan 2001 15:47:48 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=30459d09a6e04e397db9edb725e3e566763265fc;p=ircu2.10.12-pk.git Author: Kev 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 --- diff --git a/ChangeLog b/ChangeLog index 2ff5013..fd950f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-01-17 Kevin L. Mitchell + + * 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 * ircd/client.c: fixed feattab; basically, when I changed features diff --git a/ircd/ircd_features.c b/ircd/ircd_features.c index 47a2ffe..b6a4d0a 100644 --- a/ircd/ircd_features.c +++ b/ircd/ircd_features.c @@ -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), diff --git a/ircd/whowas.c b/ircd/whowas.c index b819e17..d8c0db2 100644 --- a/ircd/whowas.c +++ b/ircd/whowas.c @@ -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--; }