summaryrefslogtreecommitdiff
path: root/include/ctables.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ctables.h')
-rw-r--r--include/ctables.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ctables.h b/include/ctables.h
index 0b523a77f..c997cf68a 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -23,6 +23,7 @@
#include "base.h"
class userrec;
+class InspIRCd;
/*typedef void (handlerfunc) (char**, int, userrec*);*/
@@ -30,6 +31,8 @@ class userrec;
*/
class command_t : public Extensible
{
+ protected:
+ InspIRCd* ServerInstance;
public:
/** Command name
*/
@@ -57,7 +60,7 @@ class command_t : public Extensible
*/
std::string syntax;
- command_t(const std::string &cmd, char flags, int minpara) : command(cmd), flags_needed(flags), min_params(minpara), disabled(false)
+ command_t(InspIRCd* Instance, const std::string &cmd, char flags, int minpara) : ServerInstance(Instance), command(cmd), flags_needed(flags), min_params(minpara), disabled(false)
{
use_count = total_bytes = 0;
source = "<core>";