summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-05-14 20:35:38 -0400
committerAdam <Adam@anope.org>2010-06-18 21:01:53 -0400
commitf049124905bd9f53439293e873003cb027a17b91 (patch)
tree352ed9251fd47055dd770aa2d5eabb20247e4b43 /src/command.cpp
parent81a45520a773732c9f46785f27aa1956150775d7 (diff)
Rewrote the hashing system to use std::tr1::unordered_map
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/command.cpp b/src/command.cpp
index fc745fe46..b440c741f 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -12,20 +12,12 @@
Command::Command(const ci::string &sname, size_t min_params, size_t max_params, const std::string &spermission) : MaxParams(max_params), MinParams(min_params), name(sname), permission(spermission)
{
- this->core = 0;
- this->mod_name = NULL;
+ this->module = NULL;
this->service = NULL;
- this->next = NULL;
}
Command::~Command()
{
- if (this->mod_name) {
- delete [] this->mod_name;
- }
- if (this->service) {
- delete [] this->service;
- }
}
CommandReturn Command::Execute(User *u, const std::vector<ci::string> &) { return MOD_CONT; }