summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-19 22:31:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-19 22:31:15 +0000
commit9f64dd045bee9b624828d2038b466b92824c9524 (patch)
tree58ba7122b254b2c6e81f4ad91d96fe1c234ff4fe
parentf462ad6d0792cae8e2c167d994cecafa26c43a02 (diff)
Fixes to this module by brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@677 e03df62e-2008-0410-955e-edbf42e46eb7
-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] == '!')
{