summaryrefslogtreecommitdiff
path: root/include/ctables.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-01-24 15:10:02 +0000
committerPeter Powell <petpow@saberuk.com>2019-01-24 15:10:02 +0000
commit4047a143fc1d16350db70c94b9ea77d79de05714 (patch)
tree854169605c3b134d5edc39067d0298f7d1e9c64b /include/ctables.h
parentcbef0241a04eafe5250b75ebb3f7ef8c32ecb260 (diff)
Move the <disabled> tag out of the core to a new module.
Diffstat (limited to 'include/ctables.h')
-rw-r--r--include/ctables.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/include/ctables.h b/include/ctables.h
index 8be40cc54..1c7d5b4bd 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -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()