mirror of
https://github.com/anope/anope.git
synced 2026-07-06 12:53:14 +02:00
BUILD : 1.7.2 (89) BUGS : NOTES : Accidently commited config.c
git-svn-id: svn://svn.anope.org/anope/trunk@89 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@65 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
5effa3fee2
commit
e98f164511
@@ -326,7 +326,6 @@ static void dep_ListOpersOnly(void)
|
||||
/*************************************************************************/
|
||||
|
||||
#define MAXPARAMS 8
|
||||
#define MAXEQUALS 8
|
||||
|
||||
/* Configuration directives */
|
||||
|
||||
@@ -339,16 +338,6 @@ typedef struct {
|
||||
} params[MAXPARAMS];
|
||||
} Directive;
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
struct {
|
||||
int type; /* PARAM_* below */
|
||||
int flags; /* Same */
|
||||
void *ptr[MAXEQUALS]; /* Pointer to where to store the value */
|
||||
} params[MAXPARAMS];
|
||||
void *ptrcount;
|
||||
} DynDirective;
|
||||
|
||||
#define PARAM_NONE 0
|
||||
#define PARAM_INT 1
|
||||
#define PARAM_POSINT 2 /* Positive integer only */
|
||||
@@ -366,13 +355,6 @@ typedef struct {
|
||||
#define PARAM_FULLONLY 0x02 /* Directive only allowed if !STREAMLINED */
|
||||
#define PARAM_RELOAD 0x04 /* Directive is reloadable */
|
||||
|
||||
char *oper_test[MAXEQUALS];
|
||||
int oper_test_count = 0;
|
||||
|
||||
DynDirective dyndirectives[] = {
|
||||
{"Oper", {{PARAM_STRING, PARAM_RELOAD, &oper_test}},&oper_test_count},
|
||||
};
|
||||
|
||||
Directive directives[] = {
|
||||
{"AkillOnAdd", {{PARAM_SET, PARAM_RELOAD, &AkillOnAdd}}},
|
||||
{"AutokillDB", {{PARAM_STRING, PARAM_RELOAD, &AutokillDBName}}},
|
||||
@@ -737,16 +719,6 @@ int parse(char *buf, int linenum, int reload)
|
||||
if (!dir)
|
||||
return 1;
|
||||
|
||||
for (n = 0; n < lenof(dyndirectives); n++) {
|
||||
DynDirective *d = &dyndirectives[n];
|
||||
tmp = *(int *) d->ptrcount;
|
||||
*(char **) d->params[0].ptr[tmp] = strdup(av[0]);
|
||||
*(int *) d->ptrcount = tmp + 1;
|
||||
}
|
||||
if (!stricmp(dir,"Oper")) {
|
||||
alog("Found OperBlock %s",av[0]);
|
||||
return 1;
|
||||
}
|
||||
for (n = 0; n < lenof(directives); n++) {
|
||||
Directive *d = &directives[n];
|
||||
if (stricmp(dir, d->name) != 0)
|
||||
|
||||
+5
-1
@@ -8,11 +8,15 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="2"
|
||||
VERSION_BUILD="88"
|
||||
VERSION_BUILD="89"
|
||||
VERSION_EXTRA=""
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.2 (89)
|
||||
# BUGS :
|
||||
# NOTES : Accidently commited config.c
|
||||
#
|
||||
# BUILD : 1.7.2 (88)
|
||||
# BUGS : 13 and 14
|
||||
# NOTES : Hopefully fixed empty nickserv-accesslist entries and corrupt mysql code
|
||||
|
||||
Reference in New Issue
Block a user