]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sqloper.cpp
Remove unused variables, avoid copies where possible, check empty() instead of size...
[user/henk/code/inspircd.git] / src / modules / m_sqloper.cpp
index 03b6269630c04833431bd514c07cd328904c50b4..ae581cc4b61e3b36a98962291c41243545ff77f9 100644 (file)
@@ -119,7 +119,7 @@ class OpMeQuery : public SQLQuery
 
                hostname.append("@").append(user->host);
 
-               if (OneOfMatches(hostname.c_str(), user->GetIPString(), pattern.c_str()))
+               if (OneOfMatches(hostname.c_str(), user->GetIPString(), pattern))
                {
                        /* Opertype and host match, looks like this is it. */