diff options
| author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-01-24 07:54:48 +0000 |
|---|---|---|
| committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-01-24 07:54:48 +0000 |
| commit | 4a54fdec5e6becedc49a90f2bee7e391e3bfe64c (patch) | |
| tree | 9c68cf3e766f81d51f2ba43d2444df9ef6d7b2e0 /src/modules/ns_noop.c | |
| parent | 0dc104f20dcfa3dbdf301949a4c01d2f38c02687 (diff) | |
git-svn-id: svn://svn.anope.org/anope/trunk@957 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@684 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/ns_noop.c')
| -rw-r--r-- | src/modules/ns_noop.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/ns_noop.c b/src/modules/ns_noop.c index 60a0a57a9..7ab163fc3 100644 --- a/src/modules/ns_noop.c +++ b/src/modules/ns_noop.c @@ -36,8 +36,6 @@ #define AUTOOP_DESC 6 #define AUTOOP_HELP 7 -char *ns_noop_tmp; - /*************************************************************************/ User *currentUser; @@ -322,9 +320,10 @@ int mSaveData(int argc, char **argv) **/ int mLoadConfig(int argc, char **argv) { + char *tmp = NULL; Directive d[] = { - {"NSAutoOPDBName", {{PARAM_STRING, PARAM_RELOAD, &ns_noop_tmp}}}, + {"NSAutoOPDBName", {{PARAM_STRING, PARAM_RELOAD, &tmp}}}, }; moduleGetConfigDirective(d); @@ -332,8 +331,8 @@ int mLoadConfig(int argc, char **argv) if (NSAutoOPDBName) free(NSAutoOPDBName); - if (ns_noop_tmp) { - NSAutoOPDBName = sstrdup(ns_noop_tmp); + if (tmp) { + NSAutoOPDBName = tmp; } else { NSAutoOPDBName = sstrdup(DEFAULT_DB_NAME); alog("ns_noop: NSAutoOPDBName is not defined in Services configuration file, using default %s", NSAutoOPDBName); |
