diff options
Diffstat (limited to 'docs/module-doc/users_8cpp-source.html')
-rw-r--r-- | docs/module-doc/users_8cpp-source.html | 70 |
1 files changed, 33 insertions, 37 deletions
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,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this->nick,this->oper); 00115 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&config_f); 00116 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); -00117 <span class="comment">//myclass = savept;</span> -00118 <span class="keywordflow">while</span> (myclass) -00119 { -00120 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); -00121 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&config_f); k++) -00122 { -00123 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&config_f); -00124 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) -00125 { -00126 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&config_f); -00127 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); +00117 <span class="keywordflow">while</span> (myclass) +00118 { +00119 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); +00120 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&config_f); k++) +00121 { +00122 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&config_f); +00123 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) +00124 { +00125 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&config_f); +00126 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); +00127 00128 -00129 -00130 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); -00131 <span class="comment">//mycmd = savept2;</span> -00132 <span class="keywordflow">while</span> (mycmd) -00133 { -00134 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) -00135 { -00136 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); -00137 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00138 } -00139 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); -00140 <span class="comment">//mycmd = savept2;</span> -00141 } -00142 } -00143 } -00144 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); -00145 <span class="comment">//myclass = savept;</span> -00146 } -00147 } -00148 } -00149 } -00150 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00151 } -00152 -00153 -</pre></div><hr><address style="align: right;"><small>Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by +00129 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); +00130 <span class="keywordflow">while</span> (mycmd) +00131 { +00132 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) +00133 { +00134 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); +00135 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00136 } +00137 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); +00138 } +00139 } +00140 } +00141 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); +00142 } +00143 } +00144 } +00145 } +00146 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00147 } +00148 +00149 +</pre></div><hr><address style="align: right;"><small>Generated on Sat May 1 13:39:00 2004 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.3-rc3 </small></address> |