From f2723ee48a56c190c708c56ca70c49a69fe33395 Mon Sep 17 00:00:00 2001 From: fishwaldo <> Date: Fri, 18 Apr 2003 06:41:34 +0000 Subject: [PATCH] a option to get all the keys in a directory. Usefull for exempt listings --- conf.h | 5 ++++- dl.c | 3 +-- ircd.c | 5 +++-- keeper.c | 4 +++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/conf.h b/conf.h index 25be10c2..9e93c6a5 100755 --- a/conf.h +++ b/conf.h @@ -20,7 +20,7 @@ ** USA ** ** NeoStats CVS Identification -** $Id: conf.h,v 1.2 2003/04/10 09:32:01 fishwaldo Exp $ +** $Id: conf.h,v 1.3 2003/04/18 06:41:34 fishwaldo Exp $ */ @@ -54,10 +54,13 @@ struct config { unsigned int foreground : 1; } config; +#define GetDir(x, y) kp_get_dir(x,y,NULL); int GetConf(void **data, int type, const char *item); int SetConf(void *data, int type, char *item); +/* need this to stop modules complaining */ +int kp_get_dir (const char *keypath, char ***keysp, unsigned int *nump); #endif diff --git a/dl.c b/dl.c index 575c9cd2..f76414d9 100644 --- a/dl.c +++ b/dl.c @@ -20,7 +20,7 @@ ** USA ** ** NeoStats CVS Identification -** $Id: dl.c,v 1.52 2003/04/17 00:16:26 fishwaldo Exp $ +** $Id: dl.c,v 1.53 2003/04/18 06:41:34 fishwaldo Exp $ */ #include @@ -586,7 +586,6 @@ int load_module(char *path1, User *u) { strcpy(segv_location, "AfterDLLoadOnline"); strcpy(segvinmodule, ""); free(av); -// FreeList(av, ac); break; } event_fn_ptr++; diff --git a/ircd.c b/ircd.c index cb24a3d9..ae6841bc 100755 --- a/ircd.c +++ b/ircd.c @@ -22,7 +22,7 @@ ** USA ** ** NeoStats CVS Identification -** $Id: ircd.c,v 1.115 2003/04/11 09:26:30 fishwaldo Exp $ +** $Id: ircd.c,v 1.116 2003/04/18 06:41:34 fishwaldo Exp $ */ #include @@ -333,7 +333,8 @@ int init_bot(char *nick, char *user, char *host, char *rname, char *modes, char AddStringToList(&av, nick, &ac); Module_Event("SIGNON", av, ac); free(av); -// FreeList(av, ac); + /* restore segvinmodule from SIGNON */ + strcpy(segvinmodule, mod_name); return 1; } diff --git a/keeper.c b/keeper.c index 8a0c3a6e..8069326f 100644 --- a/keeper.c +++ b/keeper.c @@ -20,7 +20,7 @@ ** USA ** ** NeoStats CVS Identification -** $Id: keeper.c,v 1.6 2003/04/17 13:48:13 fishwaldo Exp $ +** $Id: keeper.c,v 1.7 2003/04/18 06:41:34 fishwaldo Exp $ */ #include "stats.h" @@ -69,6 +69,8 @@ int GetConf(void **data, int type, const char *item) { return 1; } + + /** @brief Sets Config Data of Type */ int SetConf(void *data, int type, char *item) {