]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove some unneccessary .c_str() calls
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 17:27:51 +0000 (17:27 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 17:27:51 +0000 (17:27 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9734 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index afd26b1f868189194a577a6571430de1e5866789..0b797f5ee08af600ae75e2baa7565fc9902c8cc5 100644 (file)
@@ -1720,7 +1720,7 @@ ConnectClass* User::SetClass(const std::string &explicit_name)
                        ConnectClass* c = *i;
 
                        /* check if host matches.. */
-                       if (((!match(this->GetIPString(),c->GetHost().c_str(),true)) && (!match(this->host,c->GetHost().c_str()))))
+                       if (((!match(this->GetIPString(),c->GetHost(),true)) && (!match(this->host,c->GetHost()))))
                        {
                                ServerInstance->Logs->Log("CONNECTCLASS", DEBUG, "No host match (for %s)", c->GetHost().c_str());
                                continue;