From 694e307c09334c21aaf1a6c3f0b7b6d95440dd3e Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 15 Oct 2007 20:55:55 +0000 Subject: class command_t -> class Command. Whey :D git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8203 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/ctables.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/ctables.h') diff --git a/include/ctables.h b/include/ctables.h index d112e885c..abfc740da 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -52,9 +52,9 @@ enum TranslateType /** A structure that defines a command. Every command available - * in InspIRCd must be defined as derived from command_t. + * in InspIRCd must be defined as derived from Command. */ -class CoreExport command_t : public Extensible +class CoreExport Command : public Extensible { protected: /** Owner/Creator object @@ -102,7 +102,7 @@ class CoreExport command_t : public Extensible * be allowed before the user is 'registered' (has sent USER, * NICK, optionally PASS, and been resolved). */ - command_t(InspIRCd* Instance, const std::string &cmd, char flags, int minpara, int before_reg = false) : ServerInstance(Instance), command(cmd), flags_needed(flags), min_params(minpara), disabled(false), works_before_reg(before_reg) + Command(InspIRCd* Instance, const std::string &cmd, char flags, int minpara, int before_reg = false) : ServerInstance(Instance), command(cmd), flags_needed(flags), min_params(minpara), disabled(false), works_before_reg(before_reg) { use_count = 0; total_bytes = 0; @@ -173,12 +173,12 @@ class CoreExport command_t : public Extensible /** Standard constructor gubbins */ - virtual ~command_t() {} + virtual ~Command() {} }; /** A hash of commands used by the core */ -typedef nspace::hash_map command_table; +typedef nspace::hash_map Commandable; #define TRANSLATE1(x1) translation.push_back(x1); #define TRANSLATE2(x1,x2) translation.push_back(x1);translation.push_back(x2); -- cgit v1.2.3