From 9759298513f81afa1744381bf7627e2782473054 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 28 Dec 2005 21:17:40 +0000 Subject: Fixed typos git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2685 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 89bec3af7..5e89c2841 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -626,7 +626,7 @@ bool CommandParser::RemoveCommands(const char* source) go_again = false; for (std::map::iterator i = cmdlist.begin(); i != cmdlist.end(); i++) { - command_t* x = (command_t*)*i; + command_t* x = i->second; if (x->source == std::string(source)) { log(DEBUG,"removecommands(%s) Removing dependent command: %s",x->source.c_str(),x->command.c_str()); -- cgit v1.3.1-10-gc9f91