diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-01 19:37:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-01 19:37:36 +0000 |
commit | 3eee96f75bd68d6b26492f3588edfc5d74b5d339 (patch) | |
tree | 9165deabfc5667011cb406a2b700d34211b245cd /src | |
parent | 12168243aba8a947ad9af8f487d658599a29e403 (diff) |
Fixed is_valid_cmd to only return true for non-core commands
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2086 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 2e300df95..c3426c913 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -1568,7 +1568,7 @@ bool is_valid_cmd(const char* commandname, int pcnt, userrec * user) { if (cmdlist[i].handler_function) { - if (pcnt>=cmdlist[i].min_params) + if ((pcnt>=cmdlist[i].min_params) && (strcasecmp(cmdlist[i].source,"<core>"))) { if (strchr(user->modes,cmdlist[i].flags_needed)) { |