diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 1 | ||||
-rw-r--r-- | include/modules.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 9bf0b8878..05a76f48e 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -95,6 +95,7 @@ void force_nickchange(userrec* user,const char* newnick); void kill_link(userrec *user,const char* r); void kill_link_silent(userrec *user,const char* r); void call_handler(const char* commandname,char **parameters, int pcnt, userrec *user); +bool is_valid_cmd(const char* commandname, int pcnt, userrec * user); std::string GetRevision(); int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason); diff --git a/include/modules.h b/include/modules.h index ec49c90dc..9e3206736 100644 --- a/include/modules.h +++ b/include/modules.h @@ -978,6 +978,8 @@ class Server : public classbase * used for privilage checks, etc. */ virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); + + virtual bool IsValidModuleCommand(std::string commandname, int pcnt, userrec* user); /** Change displayed hostname of a user. * You should always call this method to change a user's host rather than writing directly to the |