diff options
Diffstat (limited to 'include/ctables.h')
-rw-r--r-- | include/ctables.h | 15 |
1 files changed, 15 insertions, 0 deletions
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<std::string>& parameters, User* user); + virtual CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user); + virtual CmdResult HandleRemote(const std::vector<std::string>& parameters, RemoteUser* user); + virtual CmdResult HandleServer(const std::vector<std::string>& parameters, FakeUser* user); +}; + /** A hash of commands used by the core */ typedef nspace::hash_map<std::string,Command*> Commandtable; |