summaryrefslogtreecommitdiff
path: root/include/ctables.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-21 23:44:58 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-21 23:44:58 +0000
commitbbb5f6ee63b4a226e6679119a1ee8c725d7d2abc (patch)
tree893615b964fb792773a4647c33a0cb424c33fb79 /include/ctables.h
parent9924e5631193ad581d885380fd11ae8bfb91fa0b (diff)
Move SetClass to LocalUser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11941 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/ctables.h')
-rw-r--r--include/ctables.h15
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;