aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-05-16 20:33:46 +0200
committerGravatar attilamolnar2013-05-16 20:33:46 +0200
commit0a8b0d317ed4adc43185c1b791bcf752115dc58e (patch)
treec2be0ec5f20ec5bdb0c8c435fe5bd57d53caeaef /src/modules/m_sqloper.cpp
parentFix thread handle leak in threadengine_win32 (diff)
downloadinspircd++-0a8b0d317ed4adc43185c1b791bcf752115dc58e.tar.gz
inspircd++-0a8b0d317ed4adc43185c1b791bcf752115dc58e.tar.bz2
inspircd++-0a8b0d317ed4adc43185c1b791bcf752115dc58e.zip
Remove unused variables, avoid copies where possible, check empty() instead of size() == 0
Most of these were detected by cppcheck
Diffstat (limited to 'src/modules/m_sqloper.cpp')
-rw-r--r--src/modules/m_sqloper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp
index 03b626963..ae581cc4b 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -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. */