From 42b7f65a06e9307bf18deff2837535730b895d4a Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 25 Feb 2016 19:23:46 +0100 Subject: Remove unnecessary std::string::c_str() calls --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') 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); -- cgit v1.3.1-10-gc9f91