summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_helpop.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 6696b59d2..5ef4f10a3 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -18,7 +18,16 @@ void handle_helpop(char **parameters, int pcnt, userrec *user)
char a[MAXBUF];
std::string output = " ";
- if (parameters[0] == "") { do_helpop(NULL,pcnt,user); }
+ if (pcnt < 1) {
+ do_helpop(NULL,pcnt,user);
+ return;
+ }
+
+ // FIX by brain: make the string lowercase, ConfigReader is
+ // case sensitive
+ char* lower = parameters[0];
+ for (int t = 0; t < strlen(lower); t++)
+ lower[t] = tolower(lower[t]);
if (parameters[0][0] == '!')
{