From 293df6a8b55e89c127e60e92711ef0ef1027bff8 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Dec 2005 18:10:38 +0000 Subject: Split all commands into seperate files and redid command system to take classes, not function pointers (function pointers suck ass) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2534 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/command_parse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/command_parse.h') diff --git a/include/command_parse.h b/include/command_parse.h index b199123ee..d66726379 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -36,10 +36,10 @@ class CommandParser CommandParser(); void CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user); bool IsValidCommand(std::string &commandname, int pcnt, userrec * user); - int LoopCall(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); + int LoopCall(command_t *fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); void ProcessBuffer(const char* cmdbuf,userrec *user); bool RemoveCommands(const char* source); - bool CreateCommand(char* cmd, handlerfunc f, char flags, int minparams,char* source); + bool CreateCommand(command_t *f); }; #endif -- cgit v1.2.3