diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-05 14:22:52 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-05 14:22:52 +0000 |
commit | 4e557a7e7a8617a2e82ddc2b3373efda458440cd (patch) | |
tree | c0a5291e676f1aa9417ca0b89f217d321b56abb0 /src/users.cpp | |
parent | 9c96921f009bafcfb8ca5492fa2e6467c0063547 (diff) |
And fix my typoes :D
wooohooo, 30 mins till time to go home :D
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5420 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/users.cpp b/src/users.cpp index 0cef0121a..02f6a28ee 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -37,7 +37,7 @@ bool InitTypes(ServerConfig* conf, const char* tag) delete[] n->second; } - opertypes.clear(); + conf->opertypes.clear(); return true; } @@ -49,7 +49,7 @@ bool InitClasses(ServerConfig* conf, const char* tag) delete[] n->second; } - operclass.clear(); + conf->operclass.clear(); return true; } @@ -449,15 +449,15 @@ bool userrec::HasPermission(const std::string &command) // are they even an oper at all? if (*this->oper) { - opertype_t::iterator iter_opertype = opertypes.find(this->oper); - if (iter_opertype != opertypes.end()) + opertype_t::iterator iter_opertype = ServerInstance->Config->opertypes.find(this->oper); + if (iter_opertype != ServerInstance->Config->opertypes.end()) { char* Classes = strdup(iter_opertype->second); char* myclass = strtok_r(Classes," ",&savept); while (myclass) { - operclass_t::iterator iter_operclass = operclass.find(myclass); - if (iter_operclass != operclass.end()) + operclass_t::iterator iter_operclass = ServerInstance->Config->operclass.find(myclass); + if (iter_operclass != ServerInstance->Config->operclass.end()) { char* CommandList = strdup(iter_operclass->second); mycmd = strtok_r(CommandList," ",&savept2); |