summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp7
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);
}
}