diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 00:15:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 00:15:07 +0000 |
commit | 66098d307c036997e51eaea21724615e27fdc3e9 (patch) | |
tree | c2e41b2e2f86efdfca62545c4e61ebae3ed38fe5 /include/ctables.h | |
parent | d0b4bb3811458aa335857514e4cbb95d5c84f433 (diff) |
(Bigger than it looks, i did this with perl inplace edit) -- commands now take an InspIRCd* param to their constructor, so that you can do stuff within them without an extern
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4862 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/ctables.h')
-rw-r--r-- | include/ctables.h | 5 |
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>"; |