From 4e557a7e7a8617a2e82ddc2b3373efda458440cd Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 5 Oct 2006 14:22:52 +0000 Subject: 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 --- src/users.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.3