]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Move the <disabled> tag out of the core to a new module.
[user/henk/code/inspircd.git] / include / ctables.h
index 8be40cc54d597350b21a2b51ff845cc8b641c973..1c7d5b4bd5dadd1e45d619323ebab6411b71ca72 100644 (file)
@@ -163,10 +163,6 @@ class CoreExport CommandBase : public ServiceProvider
         */
        unsigned long use_count;
 
-       /** True if the command is disabled to non-opers
-        */
-       bool disabled;
-
        /** True if the command can be issued before registering
         */
        bool works_before_reg;
@@ -212,23 +208,6 @@ class CoreExport CommandBase : public ServiceProvider
         */
        virtual void EncodeParameter(std::string& parameter, unsigned int index);
 
-       /** Disable or enable this command.
-        * @param setting True to disable the command.
-        */
-       void Disable(bool setting)
-       {
-               disabled = setting;
-       }
-
-       /** Obtain this command's disable state.
-        * @return true if the command is currently disabled
-        * (disabled commands can be used only by operators)
-        */
-       bool IsDisabled()
-       {
-               return disabled;
-       }
-
        /** @return true if the command works before registration.
         */
        bool WorksBeforeReg()