diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 12:00:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 12:00:25 +0000 |
commit | 95840640cb374a0845c866bd1ad56a04dd833081 (patch) | |
tree | 17fb64980c11b26d33967f58064f3579d2a1ca4d /src/command_parse.cpp | |
parent | 9296aee7bc95c0fb2a0d00f76b908eba99e730af (diff) |
Change all references to voodoo numbers (7, 3 etc) to the new bitwise constants for user->registered
Change a lot of user->fd > -1 to use the IS_LOCAL() macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index b5ee19c1c..a90b7e4e3 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -242,7 +242,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) WriteServ(user->fd,"481 %s :Permission Denied- Oper type %s does not have access to command %s",user->nick,user->oper,command.c_str()); return; } - if ((user->registered == 7) && (!*user->oper) && (cm->second->IsDisabled())) + if ((user->registered == REG_ALL) && (!*user->oper) && (cm->second->IsDisabled())) { /* command is disabled! */ WriteServ(user->fd,"421 %s %s :This command has been disabled.",user->nick,command.c_str()); @@ -257,7 +257,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) WriteServ(user->fd,"461 %s %s :Not enough parameters", user->nick, command.c_str()); return; } - if ((user->registered == 7) || (cm->second == command_user) || (cm->second == command_nick) || (cm->second == command_pass)) + if ((user->registered == REG_ALL) || (cm->second == command_user) || (cm->second == command_nick) || (cm->second == command_pass)) { /* ikky /stats counters */ cm->second->use_count++; |