diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-23 18:06:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-23 18:06:57 +0000 |
commit | 10ef0fde2e1832f0684ae142a582cb5f032bfe6a (patch) | |
tree | 11bb007b9d1aa0630641c000d59b3715c025f442 /src/command_parse.cpp | |
parent | 7b9d883eec813a828f2f5afc5d04148b933d643f (diff) |
Tidyup a bunch of stuff that was using userrec::modes directly rather than userrec::IsModeSet. Same for chanrec.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7506 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 52c58ef99..774936b8b 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -218,7 +218,7 @@ bool CommandParser::IsValidCommand(const std::string &commandname, int pcnt, use { if ((pcnt>=n->second->min_params) && (n->second->source != "<core>")) { - if ((!n->second->flags_needed) || (user->modes[n->second->flags_needed-65])) + if ((!n->second->flags_needed) || (user->IsModeSet(n->second->flags_needed))) { if (n->second->flags_needed) { @@ -250,7 +250,7 @@ CmdResult CommandParser::CallHandler(const std::string &commandname,const char** { if (pcnt >= n->second->min_params) { - if ((!n->second->flags_needed) || (user->modes[n->second->flags_needed-65])) + if ((!n->second->flags_needed) || (user->IsModeSet(n->second->flags_needed))) { if (n->second->flags_needed) { |