diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 18:10:38 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 18:10:38 +0000 |
commit | 293df6a8b55e89c127e60e92711ef0ef1027bff8 (patch) | |
tree | da33b32cfdd5b6e93cabaf288316671af9a51297 /include/mode.h | |
parent | 0d6f3c83f101e3cb1f6cd6768cc4d17de24db489 (diff) |
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
Diffstat (limited to 'include/mode.h')
-rw-r--r-- | include/mode.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/mode.h b/include/mode.h index efc83b281..82b329b22 100644 --- a/include/mode.h +++ b/include/mode.h @@ -27,6 +27,7 @@ #include <vector> #include "users.h" #include "channels.h" +#include "ctables.h" class ModeParser { @@ -47,7 +48,11 @@ class ModeParser void ServerMode(char **parameters, int pcnt, userrec *user); }; -void handle_mode(char **parameters, int pcnt, userrec *user); - +class cmd_mode : public command_t +{ + public: + cmd_mode () : command_t("MODE",0,1) { } + void Handle(char **parameters, int pcnt, userrec *user); +}; #endif |