From 0fad2325b495aea5302abce3d9c3f0bd0720281e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 21 Dec 2005 20:33:32 +0000 Subject: Improved m_alias to only capture complete commands and rewrite them (bug #92 as reported by strike) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2601 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 4bc3a1aa1..4ce96a45d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -877,9 +877,10 @@ class Module : public classbase * @param parameters An array of array of characters containing the parameters for the command * @param pcnt The nuimber of parameters passed to the command * @param user the user issuing the command + * @param validated True if the command has passed all checks, e.g. it is recognised, has enough parameters, the user has permission to execute it, etc. * @return 1 to block the command, 0 to allow */ - virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user); + virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user, bool validated); /** Called to check if a user who is connecting can now be allowed to register * If any modules return false for this function, the user is held in the waiting -- cgit v1.2.3