X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommand_parse.cpp;h=457934d2b1a6a480af48bf6be98160ba2688c1be;hb=b954283ccc4253a6881513bbe7f743c39886d3b7;hp=08e28557ce871f5f6c2bbc5a55bb384bbe99ff48;hpb=05c816fcb2a8ca0ff97472f756aa28a04084de33;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 08e28557c..457934d2b 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -108,30 +108,6 @@ bool CommandParser::LoopCall(User* user, Command* handler, const std::vector= n->second->min_params)) - { - if (IS_LOCAL(user) && n->second->flags_needed) - { - if (user->IsModeSet(n->second->flags_needed)) - { - return (user->HasPermission(commandname)); - } - } - else - { - return true; - } - } - } - return false; -} - Command* CommandParser::GetHandler(const std::string &commandname) { Commandtable::iterator n = cmdlist.find(commandname); @@ -435,7 +411,6 @@ void CommandParser::TranslateSingleParam(TranslateType to, const std::string& it } // If no custom translator was given, fall through } - case TR_END: case TR_TEXT: default: /* Do nothing */