From c12034634020cac5c17b6845613c2c168d174d3d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Apr 2004 13:08:31 +0000 Subject: Added 'i' and 't' type link datagrams Fixed /mode #channel +b glitch git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@521 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index 691e6eda1..91688b622 100644 --- a/include/modules.h +++ b/include/modules.h @@ -458,6 +458,19 @@ class Server : public classbase * Returns true if the literal successfully matches the pattern, false if otherwise. */ virtual bool MatchText(std::string sliteral, std::string spattern); + + /** Calls the handler for a command, either implemented by the core or by another module. + * You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, + * KICK etc, or even as a method of callback. By defining command names that are untypeable + * for users on irc (e.g. those which contain a \r or \n) you may use them as callback identifiers. + * The first parameter to this method is the name of the command handler you wish to call, e.g. + * PRIVMSG. This will be a command handler previously registered by the core or wih AddCommand(). + * The second parameter is an array of parameters, and the third parameter is a count of parameters + * in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the + * functiom will silently ignore it. The final parameter is the user executing the command handler, + * used for privilage checks, etc. + */ + virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); }; /** Allows reading of values from configuration files -- cgit v1.2.3