diff options
| author | 2016-02-25 19:23:46 +0100 | |
|---|---|---|
| committer | 2016-02-25 19:23:46 +0100 | |
| commit | 42b7f65a06e9307bf18deff2837535730b895d4a (patch) | |
| tree | aa2c8a71bcadc1946df3b662572be1b0f9288bb2 /src/users.cpp | |
| parent | Fix oversight in the last Stats::Context:AddRow() method (diff) | |
| download | inspircd++-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.cpp | 2 |
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); |
