aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2016-02-25 19:23:46 +0100
committerGravatar Attila Molnar2016-02-25 19:23:46 +0100
commit42b7f65a06e9307bf18deff2837535730b895d4a (patch)
treeaa2c8a71bcadc1946df3b662572be1b0f9288bb2 /src/users.cpp
parentFix oversight in the last Stats::Context:AddRow() method (diff)
downloadinspircd++-42b7f65a06e9307bf18deff2837535730b895d4a.tar.gz
inspircd++-42b7f65a06e9307bf18deff2837535730b895d4a.tar.bz2
inspircd++-42b7f65a06e9307bf18deff2837535730b895d4a.zip
Remove unnecessary std::string::c_str() calls
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f6cdcc769..11f103e9d 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -340,7 +340,7 @@ void User::Oper(OperInfo* info)
LocalUser* l = IS_LOCAL(this);
std::string vhost = oper->getConfig("vhost");
if (!vhost.empty())
- l->ChangeDisplayedHost(vhost.c_str());
+ l->ChangeDisplayedHost(vhost);
std::string opClass = oper->getConfig("class");
if (!opClass.empty())
l->SetClass(opClass);