summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 23:05:49 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 23:05:49 +0000
commitb4175f4f09ffc04cd720df62789f043c9182b099 (patch)
tree0c8345624eed1b034c041de4d1a4d536fdf02a27 /src/command_parse.cpp
parent1211f840f16bacb21425eedba6794dfc8b39da40 (diff)
While I'm in here, make it easier to read, and use short circuiting (IS_REMOTE is quicker than checking if the user really has access)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7925 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index a155a6207..d38a6bbca 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -253,7 +253,7 @@ CmdResult CommandParser::CallHandler(const std::string &commandname,const char**
{
if (n->second->flags_needed)
{
- if ((user->HasPermission(commandname)) || (!IS_LOCAL(user)))
+ if (IS_REMOTE(user) || user->HasPermission(commandname))
{
return n->second->Handle(parameters,pcnt,user);
}