summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/command_parse.cpp11
1 files changed, 1 insertions, 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;
}