summaryrefslogtreecommitdiffstats
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-22 12:42:59 -0400
committerGravatar Daniel De Graaf2010-08-22 12:42:59 -0400
commit95b496c831e86c8ba57223bd69aa33a2f1bb9f88 (patch)
tree02d2f78aa7c742e01e08691270bf12f48a83badb /src/configreader.cpp
parentPrevent setting -r without having the ability to reset it once unset (diff)
downloadinspircd++-95b496c831e86c8ba57223bd69aa33a2f1bb9f88.tar.gz
inspircd++-95b496c831e86c8ba57223bd69aa33a2f1bb9f88.tar.bz2
inspircd++-95b496c831e86c8ba57223bd69aa33a2f1bb9f88.zip
Remove "assign()" converter between irc::string and std::string
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index a419a6d16..6dd130e76 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -461,11 +461,11 @@ void ServerConfig::Fill()
throw CoreException(sid + " is not a valid server ID. A server ID must be 3 characters long, with the first character a digit and the next two characters a digit or letter.");
std::string defbind = options->getString("defaultbind");
- if (assign(defbind) == "ipv4")
+ if (irc::string(defbind) == "ipv4")
{
WildcardIPv6 = false;
}
- else if (assign(defbind) == "ipv6")
+ else if (irc::string(defbind) == "ipv6")
{
WildcardIPv6 = true;
}
@@ -485,7 +485,7 @@ void ServerConfig::Fill()
std::string server;
if (!tag->readString("server", server))
throw CoreException("<uline> tag missing server at " + tag->getTagLocation());
- ulines[assign(server)] = tag->getBool("silent");
+ ulines.insert(std::make_pair(server, tag->getBool("silent")));
}
tags = GetTags("banlist");