summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 12:00:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 12:00:49 +0000
commite54d9d1e52ee53211c1d9f872b05f73bcd1c26b9 (patch)
treea5c0c7a24a1fb7b45146becc3da1a0867ca47d15
parent5100f9183cd2ffddfeda0153f8ce427830fda42f (diff)
Tidyup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3623 e03df62e-2008-0410-955e-edbf42e46eb7
-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;
}