From 3eee96f75bd68d6b26492f3588edfc5d74b5d339 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 1 Dec 2005 19:37:36 +0000 Subject: 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 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,""))) { if (strchr(user->modes,cmdlist[i].flags_needed)) { -- cgit v1.2.3