From 293df6a8b55e89c127e60e92711ef0ef1027bff8 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Dec 2005 18:10:38 +0000 Subject: 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 --- include/mode.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/mode.h') 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 #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 -- cgit v1.2.3