diff options
| author | 2007-08-20 16:15:38 +0000 | |
|---|---|---|
| committer | 2007-08-20 16:15:38 +0000 | |
| commit | 123edca1011b07ed7996b7211c9b5866388879d0 (patch) | |
| tree | 25f00ff8a0b49a0e06766f1086a01db97eb7eae5 /src/configreader.cpp | |
| parent | Fix for bug #393, needs QA and backport (diff) | |
| download | inspircd++-123edca1011b07ed7996b7211c9b5866388879d0.tar.gz inspircd++-123edca1011b07ed7996b7211c9b5866388879d0.tar.bz2 inspircd++-123edca1011b07ed7996b7211c9b5866388879d0.zip | |
Whoops! trunk-only fix to config reader so it doesnt bomb out if you omit an optional tag
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7767 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index b3258eb2e..b696fe26a 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -409,6 +409,11 @@ bool DoConnect(ServerConfig* conf, const char* tag, char** entries, ValueList &v const char* parent = values[13].GetString(); int maxchans = values[14].GetInteger(); + if (!allow) + allow = ""; + if (!deny) + deny = ""; + if (*parent) { /* Find 'parent' and inherit a new class from it, @@ -419,7 +424,7 @@ bool DoConnect(ServerConfig* conf, const char* tag, char** entries, ValueList &v if (item->GetName() == name) { ConnectClass c(name, *item); - c.Update(timeout, flood, std::string(*allow ? allow : deny), pingfreq, password, threshold, sendq, recvq, localmax, globalmax, maxchans, port); + c.Update(timeout, flood, *allow ? allow : deny, pingfreq, password, threshold, sendq, recvq, localmax, globalmax, maxchans, port); conf->Classes.push_back(c); } } |
