a option to get all the keys in a directory. Usefull for exempt listings

This commit is contained in:
fishwaldo 2003-04-18 06:41:34 +00:00
parent 35dd2df2e8
commit f2723ee48a
4 changed files with 11 additions and 6 deletions

5
conf.h
View file

@ -20,7 +20,7 @@
** USA ** USA
** **
** NeoStats CVS Identification ** 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; unsigned int foreground : 1;
} config; } config;
#define GetDir(x, y) kp_get_dir(x,y,NULL);
int GetConf(void **data, int type, const char *item); int GetConf(void **data, int type, const char *item);
int SetConf(void *data, int type, 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 #endif

3
dl.c
View file

@ -20,7 +20,7 @@
** USA ** USA
** **
** NeoStats CVS Identification ** 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 <dlfcn.h> #include <dlfcn.h>
@ -586,7 +586,6 @@ int load_module(char *path1, User *u) {
strcpy(segv_location, "AfterDLLoadOnline"); strcpy(segv_location, "AfterDLLoadOnline");
strcpy(segvinmodule, ""); strcpy(segvinmodule, "");
free(av); free(av);
// FreeList(av, ac);
break; break;
} }
event_fn_ptr++; event_fn_ptr++;

5
ircd.c
View file

@ -22,7 +22,7 @@
** USA ** USA
** **
** NeoStats CVS Identification ** 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 <setjmp.h> #include <setjmp.h>
@ -333,7 +333,8 @@ int init_bot(char *nick, char *user, char *host, char *rname, char *modes, char
AddStringToList(&av, nick, &ac); AddStringToList(&av, nick, &ac);
Module_Event("SIGNON", av, ac); Module_Event("SIGNON", av, ac);
free(av); free(av);
// FreeList(av, ac); /* restore segvinmodule from SIGNON */
strcpy(segvinmodule, mod_name);
return 1; return 1;
} }

View file

@ -20,7 +20,7 @@
** USA ** USA
** **
** NeoStats CVS Identification ** 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" #include "stats.h"
@ -69,6 +69,8 @@ int GetConf(void **data, int type, const char *item) {
return 1; return 1;
} }
/** @brief Sets Config Data of Type /** @brief Sets Config Data of Type
*/ */
int SetConf(void *data, int type, char *item) { int SetConf(void *data, int type, char *item) {