From: brain Date: Fri, 10 Mar 2006 12:00:49 +0000 (+0000) Subject: Tidyup X-Git-Tag: v2.0.23~8473 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e54d9d1e52ee53211c1d9f872b05f73bcd1c26b9;p=user%2Fhenk%2Fcode%2Finspircd.git Tidyup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3623 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 00eaf29c4..684893355 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -319,21 +319,12 @@ bool CommandParser::IsValidCommand(std::string &commandname, int pcnt, userrec * { if (n->second->flags_needed) { - if ((user->HasPermission(commandname)) || (is_uline(user->server))) - { - return true; - } - else - { - return false; - } + return ((user->HasPermission(commandname)) || (is_uline(user->server))) } - return true; } } } - return false; }