summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-13 15:42:38 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-13 15:42:38 +0200
commit97faccd6c5edd79590c1390e642bd3c34e519e0a (patch)
tree3d4ffd21120191cd77b4d28237aca4cf48900c7e /src
parent15d0256e94f382b823dbb457218e1e3d2a462e16 (diff)
Remove global Commandtable typedef
Diffstat (limited to 'src')
-rw-r--r--src/command_parse.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 0669c89ad..82bfe0962 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -109,7 +109,7 @@ bool CommandParser::LoopCall(User* user, Command* handler, const std::vector<std
Command* CommandParser::GetHandler(const std::string &commandname)
{
- Commandtable::iterator n = cmdlist.find(commandname);
+ CommandMap::iterator n = cmdlist.find(commandname);
if (n != cmdlist.end())
return n->second;
@@ -120,7 +120,7 @@ Command* CommandParser::GetHandler(const std::string &commandname)
CmdResult CommandParser::CallHandler(const std::string& commandname, const std::vector<std::string>& parameters, User* user, Command** cmd)
{
- Commandtable::iterator n = cmdlist.find(commandname);
+ CommandMap::iterator n = cmdlist.find(commandname);
if (n != cmdlist.end())
{
@@ -322,7 +322,7 @@ void CommandParser::ProcessCommand(LocalUser *user, std::string &cmd)
void CommandParser::RemoveCommand(Command* x)
{
- Commandtable::iterator n = cmdlist.find(x->name);
+ CommandMap::iterator n = cmdlist.find(x->name);
if (n != cmdlist.end() && n->second == x)
cmdlist.erase(n);
}