From 5a2675d174e661c55843b3795afe2d688e7197f9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Apr 2005 17:15:49 +0000 Subject: New documentation! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1199 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/users_8cpp-source.html | 97 +++++++++++++++++----------------- 1 file changed, 48 insertions(+), 49 deletions(-) (limited to 'docs/module-doc/users_8cpp-source.html') diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index dcba28e4f..1d43fea60 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -121,57 +121,56 @@ 00114 bool userrec::HasPermission(char* command) 00115 { 00116 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00117 char* myclass; -00118 char* mycmd; -00119 char* savept; -00120 char* savept2; -00121 -00122 // are they even an oper at all? -00123 if (strchr(this->modes,'o')) -00124 { -00125 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); -00126 for (int j =0; j < ConfValueEnum("type",&config_f); j++) -00127 { -00128 ConfValue("type","name",j,TypeName,&config_f); -00129 if (!strcmp(TypeName,this->oper)) -00130 { -00131 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); -00132 ConfValue("type","classes",j,Classes,&config_f); -00133 char* myclass = strtok_r(Classes," ",&savept); -00134 while (myclass) -00135 { -00136 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); -00137 for (int k =0; k < ConfValueEnum("class",&config_f); k++) -00138 { -00139 ConfValue("class","name",k,ClassName,&config_f); -00140 if (!strcmp(ClassName,myclass)) -00141 { -00142 ConfValue("class","commands",k,CommandList,&config_f); -00143 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00117 char* mycmd; +00118 char* savept; +00119 char* savept2; +00120 +00121 // are they even an oper at all? +00122 if (strchr(this->modes,'o')) +00123 { +00124 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); +00125 for (int j =0; j < ConfValueEnum("type",&config_f); j++) +00126 { +00127 ConfValue("type","name",j,TypeName,&config_f); +00128 if (!strcmp(TypeName,this->oper)) +00129 { +00130 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); +00131 ConfValue("type","classes",j,Classes,&config_f); +00132 char* myclass = strtok_r(Classes," ",&savept); +00133 while (myclass) +00134 { +00135 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); +00136 for (int k =0; k < ConfValueEnum("class",&config_f); k++) +00137 { +00138 ConfValue("class","name",k,ClassName,&config_f); +00139 if (!strcmp(ClassName,myclass)) +00140 { +00141 ConfValue("class","commands",k,CommandList,&config_f); +00142 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00143 00144 -00145 -00146 mycmd = strtok_r(CommandList," ",&savept2); -00147 while (mycmd) -00148 { -00149 if (!strcasecmp(mycmd,command)) -00150 { -00151 log(DEBUG,"*** Command %s found, returning true",command); -00152 return true; -00153 } -00154 mycmd = strtok_r(NULL," ",&savept2); -00155 } -00156 } -00157 } -00158 myclass = strtok_r(NULL," ",&savept); -00159 } -00160 } -00161 } -00162 } -00163 return false; -00164 } +00145 mycmd = strtok_r(CommandList," ",&savept2); +00146 while (mycmd) +00147 { +00148 if (!strcasecmp(mycmd,command)) +00149 { +00150 log(DEBUG,"*** Command %s found, returning true",command); +00151 return true; +00152 } +00153 mycmd = strtok_r(NULL," ",&savept2); +00154 } +00155 } +00156 } +00157 myclass = strtok_r(NULL," ",&savept); +00158 } +00159 } +00160 } +00161 } +00162 return false; +00163 } +00164 00165 -00166 -
Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:44 2005 for InspIRCd by doxygen 1.3.3
-- cgit v1.2.3