From e53c7aa50c815761f84e0ba3a28c0e6e58dc025f Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 1 May 2004 12:43:49 +0000 Subject: Added Module::OnAccessCheck Added ListMode support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@758 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/users_8cpp-source.html | 70 ++++++++++++++++------------------ 1 file changed, 33 insertions(+), 37 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 d6aca8a62..901476431 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -122,44 +122,40 @@ 00114 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); 00115 ConfValue("type","classes",j,Classes,&config_f); 00116 char* myclass = strtok_r(Classes," ",&savept); -00117 //myclass = savept; -00118 while (myclass) -00119 { -00120 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); -00121 for (int k =0; k < ConfValueEnum("class",&config_f); k++) -00122 { -00123 ConfValue("class","name",k,ClassName,&config_f); -00124 if (!strcmp(ClassName,myclass)) -00125 { -00126 ConfValue("class","commands",k,CommandList,&config_f); -00127 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00117 while (myclass) +00118 { +00119 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); +00120 for (int k =0; k < ConfValueEnum("class",&config_f); k++) +00121 { +00122 ConfValue("class","name",k,ClassName,&config_f); +00123 if (!strcmp(ClassName,myclass)) +00124 { +00125 ConfValue("class","commands",k,CommandList,&config_f); +00126 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00127 00128 -00129 -00130 mycmd = strtok_r(CommandList," ",&savept2); -00131 //mycmd = savept2; -00132 while (mycmd) -00133 { -00134 if (!strcasecmp(mycmd,command)) -00135 { -00136 log(DEBUG,"*** Command %s found, returning true",command); -00137 return true; -00138 } -00139 mycmd = strtok_r(NULL," ",&savept2); -00140 //mycmd = savept2; -00141 } -00142 } -00143 } -00144 myclass = strtok_r(NULL," ",&savept); -00145 //myclass = savept; -00146 } -00147 } -00148 } -00149 } -00150 return false; -00151 } -00152 -00153 -
1.3-rc3
--
cgit v1.3.1-10-gc9f91