diff options
author | keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b <keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-09 16:07:28 +0000 |
---|---|---|
committer | keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b <keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-09 16:07:28 +0000 |
commit | ec3d8bda5eb0603e02027a7f5273422d6b243280 (patch) | |
tree | f26b9e6af697daaa6ac5661c5a7d233fccf53d90 | |
parent | e41e4cd69e4df7c18865e85146c06f95c5d31080 (diff) |
BUILD : 1.7.5 (343) BUGS : #00 NOTES : Fixed previous commit.
git-svn-id: svn://svn.anope.org/anope/trunk@343 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@219 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/config.c | 45 | ||||
-rw-r--r-- | version.log | 6 |
2 files changed, 10 insertions, 41 deletions
diff --git a/src/config.c b/src/config.c index 4c3af8292..10c817668 100644 --- a/src/config.c +++ b/src/config.c @@ -337,21 +337,14 @@ static void dep_ListOpersOnly(void) /* Configuration directives */ typedef struct { - int type; - int flags; - void *ptr; -} ConfParam; - -typedef struct { char *name; - ConfParam params[MAXPARAMS]; + struct { + int type; /* PARAM_* below */ + int flags; /* Same */ + void *ptr; /* Pointer to where to store the value */ + } params[MAXPARAMS]; } Directive; -typedef struct { - char *name; - int (*func) (int line, int argc, char **argv); -} ConfCB; - #define PARAM_NONE 0 #define PARAM_INT 1 #define PARAM_POSINT 2 /* Positive integer only */ @@ -369,11 +362,6 @@ typedef struct { #define PARAM_FULLONLY 0x02 /* Directive only allowed if !STREAMLINED */ #define PARAM_RELOAD 0x04 /* Directive is reloadable */ -int doAddOper(int line, int argc, char **argv); - -ConfCB confroutines[] = { - {"Oper", &doAddOper} -}; Directive directives[] = { {"AkillOnAdd", {{PARAM_SET, PARAM_RELOAD, &AkillOnAdd}}}, {"AutokillDB", {{PARAM_STRING, PARAM_RELOAD, &AutokillDBName}}}, @@ -694,22 +682,6 @@ void error(int linenum, char *message, ...) /*************************************************************************/ -int doAddOper(int line, int argc, char **argv) -{ - char *name; - int i, operflags; - if (argc < 2) { - error(line, "Oper: Missing Arguments"); - return 0; - } - - name = argv[0]; - operflags = atoi(argv[1]); - error(line, "Added Oper %s with flags %d", name, operflags); - - return 1; -} - /* Parse a configuration line. Return 1 on success; otherwise, print an * appropriate error message and return 0. Destroys the buffer by side * effect. @@ -762,13 +734,6 @@ int parse(char *buf, int linenum, int reload) if (!dir) return 1; - for (n = 0; n < lenof(confroutines); n++) { - ConfCB *cb = &confroutines[n]; - if (stricmp(dir, cb->name) != 0) - continue; - return cb->func(linenum, ac, av); - } - for (n = 0; n < lenof(directives); n++) { Directive *d = &directives[n]; if (stricmp(dir, d->name) != 0) diff --git a/version.log b/version.log index 4bdb84c06..5b57793e8 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="5" -VERSION_BUILD="342" +VERSION_BUILD="343" # $Log$ # +# BUILD : 1.7.5 (343) +# BUGS : #00 +# NOTES : Fixed previous commit. +# # BUILD : 1.7.5 (342) # BUGS : #00 # NOTES : Certus: Replaced current rand-implementation with arc4random and replaced C++ comments with C-style comments (gcc 2.95 might |