summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 19:23:46 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 19:23:46 +0100
commit42b7f65a06e9307bf18deff2837535730b895d4a (patch)
treeaa2c8a71bcadc1946df3b662572be1b0f9288bb2 /src/configreader.cpp
parent1b8f7ef94aaf6dc309df76d3c4330a4288979d25 (diff)
Remove unnecessary std::string::c_str() calls
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index cec4be3d3..1ac6b445a 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -703,7 +703,7 @@ void ServerConfig::ApplyModules(User* user)
for (std::vector<std::string>::iterator adding = added_modules.begin(); adding != added_modules.end(); adding++)
{
- if (ServerInstance->Modules->Load(adding->c_str()))
+ if (ServerInstance->Modules->Load(*adding))
{
ServerInstance->SNO->WriteGlobalSno('a', "*** REHASH LOADED MODULE: %s",adding->c_str());
if (user)