summaryrefslogtreecommitdiff
path: root/include/mode.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 18:10:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 18:10:38 +0000
commit293df6a8b55e89c127e60e92711ef0ef1027bff8 (patch)
treeda33b32cfdd5b6e93cabaf288316671af9a51297 /include/mode.h
parent0d6f3c83f101e3cb1f6cd6768cc4d17de24db489 (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.h9
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