diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-05-01 12:43:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-05-01 12:43:49 +0000 |
commit | e53c7aa50c815761f84e0ba3a28c0e6e58dc025f (patch) | |
tree | 8140663cdfc69cc054d8ffeb1b6873cb498d3387 /docs/module-doc/classuserrec.html | |
parent | 1899777c6d86544a7775bc96175283957a763326 (diff) |
Added Module::OnAccessCheck
Added ListMode support
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@758 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/module-doc/classuserrec.html')
-rw-r--r-- | docs/module-doc/classuserrec.html | 68 |
1 files changed, 32 insertions, 36 deletions
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 023abf77f..5a12bb755 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -298,41 +298,37 @@ Definition at line <a class="el" href="users_8cpp-source.html#l00097">97</a> of 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 } +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 } </pre></div> </td> </tr> </table> @@ -722,7 +718,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma <p> Definition at line <a class="el" href="users_8h-source.html#l00091">91</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00176">Server::QuitUser()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00205">Server::QuitUser()</a>. </td> </tr> </table> <a name="m11" doxytag="userrec::oper"></a><p> @@ -835,7 +831,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00013">userrec()</a>. </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="users_8h-source.html">users.h</a><li><a class="el" href="users_8cpp-source.html">users.cpp</a></ul> -<hr><address style="align: right;"><small>Generated on Fri Apr 30 15:46:49 2004 for InspIRCd by +<hr><address style="align: right;"><small>Generated on Sat May 1 13:39:27 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> |