summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanfilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index 3f343202c..44027b1fe 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -127,7 +127,7 @@ class ModuleChanFilter : public Module
{
chanrec* chan = (chanrec*)target;
- for (int j = 0; j < strlen(params[0]); j++)
+ for (int j = 0; j < params[0].length(); j++)
params[0][j] = tolower(params[0][j]);
std::string param = params[0];