summaryrefslogtreecommitdiff
path: root/include/ctables.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-15 20:55:55 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-15 20:55:55 +0000
commit694e307c09334c21aaf1a6c3f0b7b6d95440dd3e (patch)
tree2384cd066b58a46ba209595f597208faaf6c3521 /include/ctables.h
parent802cbffcb7816de7e4071b300966d868a14dc922 (diff)
class command_t -> class Command. Whey :D
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8203 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/ctables.h')
-rw-r--r--include/ctables.h10
1 files changed, 5 insertions, 5 deletions
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<std::string,command_t*> command_table;
+typedef nspace::hash_map<std::string,Command*> Commandable;
#define TRANSLATE1(x1) translation.push_back(x1);
#define TRANSLATE2(x1,x2) translation.push_back(x1);translation.push_back(x2);