]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Remove spanningtree override of /LUSERS
[user/henk/code/inspircd.git] / include / ctables.h
index 4cb530e63af892c7b9e598fc5bfb185dcfe276d4..9b433d6f94630e1ce2ca9a65d3d23dff1d2466e8 100644 (file)
@@ -85,16 +85,9 @@ struct RouteDescriptor
 /** A structure that defines a command. Every command available
  * in InspIRCd must be defined as derived from Command.
  */
-class CoreExport Command : public classbase
+class CoreExport Command : public ServiceProvider
 {
  public:
-       /** Command name
-       */
-       const std::string command;
-
-       /** Creator module - never NULL */
-       ModuleRef creator;
-
        /** User flags needed to execute the command or 0
         */
        char flags_needed;
@@ -151,7 +144,7 @@ class CoreExport Command : public classbase
         * NICK, optionally PASS, and been resolved).
         */
        Command(Module* me, const std::string &cmd, int minpara = 0, int maxpara = 0) :
-               command(cmd), creator(me), flags_needed(0), min_params(minpara), max_params(maxpara),
+               ServiceProvider(me, cmd, SERVICE_COMMAND), flags_needed(0), min_params(minpara), max_params(maxpara),
                use_count(0), total_bytes(0), disabled(false), works_before_reg(false), Penalty(1)
        {
        }
@@ -214,10 +207,6 @@ class CoreExport Command : public classbase
        virtual ~Command();
 };
 
-class LocalUser;
-class RemoteUser;
-class FakeUser;
-
 class CoreExport SplitCommand : public Command
 {
  public:
@@ -229,10 +218,6 @@ class CoreExport SplitCommand : public Command
        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;
-
 /** Shortcut macros for defining translation lists
  */
 #define TRANSLATE1(x1) translation.push_back(x1);