From bbb5f6ee63b4a226e6679119a1ee8c725d7d2abc Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 21 Oct 2009 23:44:58 +0000 Subject: Move SetClass to LocalUser git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11941 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/ctables.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/ctables.h') diff --git a/include/ctables.h b/include/ctables.h index 80962b67e..4cb530e63 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -214,6 +214,21 @@ class CoreExport Command : public classbase virtual ~Command(); }; +class LocalUser; +class RemoteUser; +class FakeUser; + +class CoreExport SplitCommand : public Command +{ + public: + SplitCommand(Module* me, const std::string &cmd, int minpara = 0, int maxpara = 0) + : Command(me, cmd, minpara, maxpara) {} + virtual CmdResult Handle(const std::vector& parameters, User* user); + virtual CmdResult HandleLocal(const std::vector& parameters, LocalUser* user); + virtual CmdResult HandleRemote(const std::vector& parameters, RemoteUser* user); + virtual CmdResult HandleServer(const std::vector& parameters, FakeUser* user); +}; + /** A hash of commands used by the core */ typedef nspace::hash_map Commandtable; -- cgit v1.2.3