From e54d9d1e52ee53211c1d9f872b05f73bcd1c26b9 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 10 Mar 2006 12:00:49 +0000 Subject: [PATCH] Tidyup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3623 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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; } -- 2.39.5