diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-03 08:30:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-03 08:30:37 +0000 |
commit | 4c19dfeed86fa4f42ab062ded09a9bfa42a2e3eb (patch) | |
tree | 28b5b685701fb1b33486b474d8d25eb41dd134bb /include | |
parent | 2abef9282f22092a5421c66cb4d30507eb91119b (diff) |
Revert special's sqloper change, nice try but only half a biscuit.
With the old fix, it would echo out all the oper failure notices first then try again, annoying all the opers.
The new version uses a CommandParser method i added, to again use OnPreCommand, halt the /oper command, but after doing the sql lookup call the original handler of the OPER command with the original user and pass, so the original handler handles the definitive failure message.
DAMNIT STOP COMMITTING
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5636 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/command_parse.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/command_parse.h b/include/command_parse.h index 682489ad5..d7c0c4ac1 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -108,6 +108,8 @@ class CommandParser : public classbase */ CmdResult CallHandler(const std::string &commandname,const char** parameters, int pcnt, userrec *user); + command_t* GetHandler(const std::string &commandname); + /** This function returns true if a command is valid with the given number of parameters and user. * @param commandname The command name to check * @param pcnt The parameter count |