diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 09:56:33 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 09:56:33 +0000 |
commit | 898e8da56573c70524a926c1df5dbab7ffcca6a5 (patch) | |
tree | c39386855aacfb719554af7cb3afe0d3c62e59b4 /include/command_parse.h | |
parent | 7cf8d9c1c8ba68419d282e715b7fc3575987a6f2 (diff) |
Moved command parsing crap into command_parse.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2505 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r-- | include/command_parse.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/command_parse.h b/include/command_parse.h new file mode 100644 index 000000000..098c8330f --- /dev/null +++ b/include/command_parse.h @@ -0,0 +1,30 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. + * E-mail: + * <brain@chatspike.net> + * <Craig@chatspike.net> + * + * Written by Craig Edwards, Craig McLure, and others. + * This program is free but copyrighted software; see + * the file COPYING for details. + * + * --------------------------------------------------- + */ + +#ifndef __COMMAND_PARSE_H +#define __COMMAND_PARSE_H + +#include <typeinfo> +#include <iostream> +#include <string> +#include "users.h" + +void call_handler(std::string &commandname,char **parameters, int pcnt, userrec *user); +bool is_valid_cmd(std::string &commandname, int pcnt, userrec * user); +int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); +void process_buffer(const char* cmdbuf,userrec *user); + +#endif |