]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/module-doc/modules_8cpp.html
52e729483669beb60df07542a47cc014be743748
[user/henk/code/inspircd.git] / docs / module-doc / modules_8cpp.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>modules.cpp File Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.3-rc3 -->
7 <center>
8 <a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
9 <hr><h1>modules.cpp File Reference</h1><code>#include &lt;typeinfo&gt;</code><br>
10 <code>#include &lt;iostream&gt;</code><br>
11 <code>#include "globals.h"</code><br>
12 <code>#include "<a class="el" href="modules_8h-source.html">modules.h</a>"</code><br>
13 <code>#include "<a class="el" href="ctables_8h-source.html">ctables.h</a>"</code><br>
14 <code>#include "inspircd_io.h"</code><br>
15 <code>#include "wildcard.h"</code><br>
16 <code>#include "<a class="el" href="mode_8h-source.html">mode.h</a>"</code><br>
17 <code>#include "<a class="el" href="message_8h-source.html">message.h</a>"</code><br>
18 <code>#include "<a class="el" href="commands_8h-source.html">commands.h</a>"</code><br>
19
20 <p>
21 Include dependency graph for modules.cpp:<p><center><img src="modules_8cpp__incl.gif" border="0" usemap="#modules.cpp_map" alt="Include dependency graph"></center>
22 <map name="modules.cpp_map">
23 <area href="mode_8h.html" shape="rect" coords="143,197,193,218" alt="">
24 <area href="message_8h.html" shape="rect" coords="132,333,204,354" alt="">
25 <area href="commands_8h.html" shape="rect" coords="127,378,209,400" alt="">
26 <area href="modules_8h.html" shape="rect" coords="135,5,201,26" alt="">
27 <area href="ctables_8h.html" shape="rect" coords="17,29,79,50" alt="">
28 </map>
29
30 <p>
31 <a href="modules_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
32 <tr><td></td></tr>
33 <tr><td colspan=2><br><h2>Compounds</h2></td></tr>
34 <tr><td nowrap align=right valign=top>class &nbsp;</td><td valign=bottom><a class="el" href="classExtMode.html">ExtMode</a></td></tr>
35 <tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
36 <tr><td nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="classExtMode.html">ExtMode</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a0">ExtModeList</a></td></tr>
37 <tr><td nowrap align=right valign=top>typedef ExtModeList::iterator&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a1">ExtModeListIter</a></td></tr>
38 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
39 <tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a4">ModeDefined</a> (char modechar, int type)</td></tr>
40 <tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a5">ModeIsListMode</a> (char modechar, int type)</td></tr>
41 <tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a6">ModeDefinedOper</a> (char modechar, int type)</td></tr>
42 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a7">ModeDefinedOn</a> (char modechar, int type)</td></tr>
43 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a8">ModeDefinedOff</a> (char modechar, int type)</td></tr>
44 <tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a9">DoAddExtendedMode</a> (char modechar, int type, bool requires_oper, int params_on, int params_off)</td></tr>
45 <tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a10">ModeMakeList</a> (char modechar)</td></tr>
46 <tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="classModule.html">Module</a> * &gt;&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a11">modules</a> (255)</td></tr>
47 <tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="modules_8h.html#a24">ircd_module</a> * &gt;&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a12">factory</a> (255)</td></tr>
48 <tr><td colspan=2><br><h2>Variables</h2></td></tr>
49 <tr><td nowrap align=right valign=top><a class="el" href="modules_8cpp.html#a0">ExtModeList</a>&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a2">EMode</a></td></tr>
50 <tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="modules_8cpp.html#a3">MODCOUNT</a> = -1</td></tr>
51 </table>
52 <hr><h2>Typedef Documentation</h2>
53 <a name="a0" doxytag="modules.cpp::ExtModeList"></a><p>
54 <table width="100%" cellpadding="2" cellspacing="0" border="0">
55   <tr>
56     <td class="md">
57       <table cellpadding="0" cellspacing="0" border="0">
58         <tr>
59           <td class="md" nowrap valign="top"> typedef std::vector&lt;<a class="el" href="classExtMode.html">ExtMode</a>&gt; ExtModeList
60       </table>
61     </td>
62   </tr>
63 </table>
64 <table cellspacing=5 cellpadding=0 border=0>
65   <tr>
66     <td>
67       &nbsp;
68     </td>
69     <td>
70
71 <p>
72
73 <p>
74 Definition at line <a class="el" href="modules_8cpp-source.html#l00033">33</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.    </td>
75   </tr>
76 </table>
77 <a name="a1" doxytag="modules.cpp::ExtModeListIter"></a><p>
78 <table width="100%" cellpadding="2" cellspacing="0" border="0">
79   <tr>
80     <td class="md">
81       <table cellpadding="0" cellspacing="0" border="0">
82         <tr>
83           <td class="md" nowrap valign="top"> typedef ExtModeList::iterator ExtModeListIter
84       </table>
85     </td>
86   </tr>
87 </table>
88 <table cellspacing=5 cellpadding=0 border=0>
89   <tr>
90     <td>
91       &nbsp;
92     </td>
93     <td>
94
95 <p>
96
97 <p>
98 Definition at line <a class="el" href="modules_8cpp-source.html#l00034">34</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
99 <p>
100 Referenced by <a class="el" href="modules_8cpp-source.html#l00039">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00095">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00082">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00067">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00053">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00118">ModeMakeList()</a>.    </td>
101   </tr>
102 </table>
103 <hr><h2>Function Documentation</h2>
104 <a name="a9" doxytag="modules.cpp::DoAddExtendedMode"></a><p>
105 <table width="100%" cellpadding="2" cellspacing="0" border="0">
106   <tr>
107     <td class="md">
108       <table cellpadding="0" cellspacing="0" border="0">
109         <tr>
110           <td class="md" nowrap valign="top"> bool DoAddExtendedMode </td>
111           <td class="md" valign="top">(&nbsp;</td>
112           <td class="md" nowrap valign="top">char&nbsp;</td>
113           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
114         </tr>
115         <tr>
116           <td></td>
117           <td></td>
118           <td class="md" nowrap>int&nbsp;</td>
119           <td class="mdname" nowrap>&nbsp; <em>type</em>, </td>
120         </tr>
121         <tr>
122           <td></td>
123           <td></td>
124           <td class="md" nowrap>bool&nbsp;</td>
125           <td class="mdname" nowrap>&nbsp; <em>requires_oper</em>, </td>
126         </tr>
127         <tr>
128           <td></td>
129           <td></td>
130           <td class="md" nowrap>int&nbsp;</td>
131           <td class="mdname" nowrap>&nbsp; <em>params_on</em>, </td>
132         </tr>
133         <tr>
134           <td></td>
135           <td></td>
136           <td class="md" nowrap>int&nbsp;</td>
137           <td class="mdname" nowrap>&nbsp; <em>params_off</em></td>
138         </tr>
139         <tr>
140           <td></td>
141           <td class="md">)&nbsp;</td>
142           <td class="md" colspan="2"></td>
143         </tr>
144
145       </table>
146     </td>
147   </tr>
148 </table>
149 <table cellspacing=5 cellpadding=0 border=0>
150   <tr>
151     <td>
152       &nbsp;
153     </td>
154     <td>
155
156 <p>
157
158 <p>
159 Definition at line <a class="el" href="modules_8cpp-source.html#l00108">108</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
160 <p>
161 References <a class="el" href="modules_8cpp-source.html#l00036">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00039">ModeDefined()</a>.
162 <p>
163 Referenced by <a class="el" href="modules_8cpp-source.html#l00371">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00351">Server::AddExtendedMode()</a>.
164 <p>
165 <div class="fragment"><pre>00109 {
166 00110         <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a4">ModeDefined</a>(modechar,type)) {
167 00111                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
168 00112         }
169 00113         <a class="code" href="modules_8cpp.html#a2">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off));
170 00114         <span class="keywordflow">return</span> <span class="keyword">true</span>;
171 00115 }
172 </pre></div>    </td>
173   </tr>
174 </table>
175 <a name="a12" doxytag="modules.cpp::factory"></a><p>
176 <table width="100%" cellpadding="2" cellspacing="0" border="0">
177   <tr>
178     <td class="md">
179       <table cellpadding="0" cellspacing="0" border="0">
180         <tr>
181           <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="modules_8h.html#a24">ircd_module</a>*&gt; factory </td>
182           <td class="md" valign="top">(&nbsp;</td>
183           <td class="md" nowrap valign="top">255&nbsp;</td>
184           <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
185           <td class="md" valign="top">)&nbsp;</td>
186           <td class="md" nowrap></td>
187         </tr>
188
189       </table>
190     </td>
191   </tr>
192 </table>
193 <table cellspacing=5 cellpadding=0 border=0>
194   <tr>
195     <td>
196       &nbsp;
197     </td>
198     <td>
199
200 <p>
201     </td>
202   </tr>
203 </table>
204 <a name="a4" doxytag="modules.cpp::ModeDefined"></a><p>
205 <table width="100%" cellpadding="2" cellspacing="0" border="0">
206   <tr>
207     <td class="md">
208       <table cellpadding="0" cellspacing="0" border="0">
209         <tr>
210           <td class="md" nowrap valign="top"> bool ModeDefined </td>
211           <td class="md" valign="top">(&nbsp;</td>
212           <td class="md" nowrap valign="top">char&nbsp;</td>
213           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
214         </tr>
215         <tr>
216           <td></td>
217           <td></td>
218           <td class="md" nowrap>int&nbsp;</td>
219           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
220         </tr>
221         <tr>
222           <td></td>
223           <td class="md">)&nbsp;</td>
224           <td class="md" colspan="2"></td>
225         </tr>
226
227       </table>
228     </td>
229   </tr>
230 </table>
231 <table cellspacing=5 cellpadding=0 border=0>
232   <tr>
233     <td>
234       &nbsp;
235     </td>
236     <td>
237
238 <p>
239
240 <p>
241 Definition at line <a class="el" href="modules_8cpp-source.html#l00039">39</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
242 <p>
243 References <a class="el" href="modules_8cpp-source.html#l00036">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00034">ExtModeListIter</a>.
244 <p>
245 Referenced by <a class="el" href="modules_8cpp-source.html#l00108">DoAddExtendedMode()</a>.
246 <p>
247 <div class="fragment"><pre>00040 {
248 00041         log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a2">EMode</a>.size());
249 00042         <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
250 00043         {
251 00044                 log(DEBUG,<span class="stringliteral">"i-&gt;modechar==%c, modechar=%c, i-&gt;type=%d, type=%d"</span>,i-&gt;modechar,modechar,i-&gt;type,type);
252 00045                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type))
253 00046                 {
254 00047                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
255 00048                 }
256 00049         }
257 00050         <span class="keywordflow">return</span> <span class="keyword">false</span>;
258 00051 }
259 </pre></div>    </td>
260   </tr>
261 </table>
262 <a name="a8" doxytag="modules.cpp::ModeDefinedOff"></a><p>
263 <table width="100%" cellpadding="2" cellspacing="0" border="0">
264   <tr>
265     <td class="md">
266       <table cellpadding="0" cellspacing="0" border="0">
267         <tr>
268           <td class="md" nowrap valign="top"> int ModeDefinedOff </td>
269           <td class="md" valign="top">(&nbsp;</td>
270           <td class="md" nowrap valign="top">char&nbsp;</td>
271           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
272         </tr>
273         <tr>
274           <td></td>
275           <td></td>
276           <td class="md" nowrap>int&nbsp;</td>
277           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
278         </tr>
279         <tr>
280           <td></td>
281           <td class="md">)&nbsp;</td>
282           <td class="md" colspan="2"></td>
283         </tr>
284
285       </table>
286     </td>
287   </tr>
288 </table>
289 <table cellspacing=5 cellpadding=0 border=0>
290   <tr>
291     <td>
292       &nbsp;
293     </td>
294     <td>
295
296 <p>
297
298 <p>
299 Definition at line <a class="el" href="modules_8cpp-source.html#l00095">95</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
300 <p>
301 References <a class="el" href="modules_8cpp-source.html#l00036">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00034">ExtModeListIter</a>.
302 <p>
303 <div class="fragment"><pre>00096 {
304 00097         <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
305 00098         {
306 00099                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type))
307 00100                 {
308 00101                         <span class="keywordflow">return</span> i-&gt;params_when_off;
309 00102                 }
310 00103         }
311 00104         <span class="keywordflow">return</span> 0;
312 00105 }
313 </pre></div>    </td>
314   </tr>
315 </table>
316 <a name="a7" doxytag="modules.cpp::ModeDefinedOn"></a><p>
317 <table width="100%" cellpadding="2" cellspacing="0" border="0">
318   <tr>
319     <td class="md">
320       <table cellpadding="0" cellspacing="0" border="0">
321         <tr>
322           <td class="md" nowrap valign="top"> int ModeDefinedOn </td>
323           <td class="md" valign="top">(&nbsp;</td>
324           <td class="md" nowrap valign="top">char&nbsp;</td>
325           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
326         </tr>
327         <tr>
328           <td></td>
329           <td></td>
330           <td class="md" nowrap>int&nbsp;</td>
331           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
332         </tr>
333         <tr>
334           <td></td>
335           <td class="md">)&nbsp;</td>
336           <td class="md" colspan="2"></td>
337         </tr>
338
339       </table>
340     </td>
341   </tr>
342 </table>
343 <table cellspacing=5 cellpadding=0 border=0>
344   <tr>
345     <td>
346       &nbsp;
347     </td>
348     <td>
349
350 <p>
351
352 <p>
353 Definition at line <a class="el" href="modules_8cpp-source.html#l00082">82</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
354 <p>
355 References <a class="el" href="modules_8cpp-source.html#l00036">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00034">ExtModeListIter</a>.
356 <p>
357 <div class="fragment"><pre>00083 {
358 00084         <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
359 00085         {
360 00086                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type))
361 00087                 {
362 00088                         <span class="keywordflow">return</span> i-&gt;params_when_on;
363 00089                 }
364 00090         }
365 00091         <span class="keywordflow">return</span> 0;
366 00092 }
367 </pre></div>    </td>
368   </tr>
369 </table>
370 <a name="a6" doxytag="modules.cpp::ModeDefinedOper"></a><p>
371 <table width="100%" cellpadding="2" cellspacing="0" border="0">
372   <tr>
373     <td class="md">
374       <table cellpadding="0" cellspacing="0" border="0">
375         <tr>
376           <td class="md" nowrap valign="top"> bool ModeDefinedOper </td>
377           <td class="md" valign="top">(&nbsp;</td>
378           <td class="md" nowrap valign="top">char&nbsp;</td>
379           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
380         </tr>
381         <tr>
382           <td></td>
383           <td></td>
384           <td class="md" nowrap>int&nbsp;</td>
385           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
386         </tr>
387         <tr>
388           <td></td>
389           <td class="md">)&nbsp;</td>
390           <td class="md" colspan="2"></td>
391         </tr>
392
393       </table>
394     </td>
395   </tr>
396 </table>
397 <table cellspacing=5 cellpadding=0 border=0>
398   <tr>
399     <td>
400       &nbsp;
401     </td>
402     <td>
403
404 <p>
405
406 <p>
407 Definition at line <a class="el" href="modules_8cpp-source.html#l00067">67</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
408 <p>
409 References <a class="el" href="modules_8cpp-source.html#l00036">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00034">ExtModeListIter</a>.
410 <p>
411 <div class="fragment"><pre>00068 {
412 00069         log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a2">EMode</a>.size());
413 00070         <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
414 00071         {
415 00072                 log(DEBUG,<span class="stringliteral">"i-&gt;modechar==%c, modechar=%c, i-&gt;type=%d, type=%d"</span>,i-&gt;modechar,modechar,i-&gt;type,type);
416 00073                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type) &amp;&amp; (i-&gt;needsoper == <span class="keyword">true</span>))
417 00074                 {
418 00075                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
419 00076                 }
420 00077         }
421 00078         <span class="keywordflow">return</span> <span class="keyword">false</span>;
422 00079 }
423 </pre></div>    </td>
424   </tr>
425 </table>
426 <a name="a5" doxytag="modules.cpp::ModeIsListMode"></a><p>
427 <table width="100%" cellpadding="2" cellspacing="0" border="0">
428   <tr>
429     <td class="md">
430       <table cellpadding="0" cellspacing="0" border="0">
431         <tr>
432           <td class="md" nowrap valign="top"> bool ModeIsListMode </td>
433           <td class="md" valign="top">(&nbsp;</td>
434           <td class="md" nowrap valign="top">char&nbsp;</td>
435           <td class="mdname" nowrap>&nbsp; <em>modechar</em>, </td>
436         </tr>
437         <tr>
438           <td></td>
439           <td></td>
440           <td class="md" nowrap>int&nbsp;</td>
441           <td class="mdname" nowrap>&nbsp; <em>type</em></td>
442         </tr>
443         <tr>
444           <td></td>
445           <td class="md">)&nbsp;</td>
446           <td class="md" colspan="2"></td>
447         </tr>
448
449       </table>
450     </td>
451   </tr>
452 </table>
453 <table cellspacing=5 cellpadding=0 border=0>
454   <tr>
455     <td>
456       &nbsp;
457     </td>
458     <td>
459
460 <p>
461
462 <p>
463 Definition at line <a class="el" href="modules_8cpp-source.html#l00053">53</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
464 <p>
465 References <a class="el" href="modules_8cpp-source.html#l00036">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00034">ExtModeListIter</a>.
466 <p>
467 <div class="fragment"><pre>00054 {
468 00055         log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a2">EMode</a>.size());
469 00056         <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
470 00057         {
471 00058                 log(DEBUG,<span class="stringliteral">"i-&gt;modechar==%c, modechar=%c, i-&gt;type=%d, type=%d"</span>,i-&gt;modechar,modechar,i-&gt;type,type);
472 00059                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == type) &amp;&amp; (i-&gt;list == <span class="keyword">true</span>))
473 00060                 {
474 00061                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
475 00062                 }
476 00063         }
477 00064         <span class="keywordflow">return</span> <span class="keyword">false</span>;
478 00065 }
479 </pre></div>    </td>
480   </tr>
481 </table>
482 <a name="a10" doxytag="modules.cpp::ModeMakeList"></a><p>
483 <table width="100%" cellpadding="2" cellspacing="0" border="0">
484   <tr>
485     <td class="md">
486       <table cellpadding="0" cellspacing="0" border="0">
487         <tr>
488           <td class="md" nowrap valign="top"> void ModeMakeList </td>
489           <td class="md" valign="top">(&nbsp;</td>
490           <td class="md" nowrap valign="top">char&nbsp;</td>
491           <td class="mdname1" valign="top" nowrap>&nbsp; <em>modechar</em>          </td>
492           <td class="md" valign="top">)&nbsp;</td>
493           <td class="md" nowrap></td>
494         </tr>
495
496       </table>
497     </td>
498   </tr>
499 </table>
500 <table cellspacing=5 cellpadding=0 border=0>
501   <tr>
502     <td>
503       &nbsp;
504     </td>
505     <td>
506
507 <p>
508
509 <p>
510 Definition at line <a class="el" href="modules_8cpp-source.html#l00118">118</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
511 <p>
512 References <a class="el" href="modules_8cpp-source.html#l00036">EMode</a>, <a class="el" href="modules_8cpp-source.html#l00034">ExtModeListIter</a>, and <a class="el" href="modules_8h-source.html#l00021">MT_CHANNEL</a>.
513 <p>
514 Referenced by <a class="el" href="modules_8cpp-source.html#l00371">Server::AddExtendedListMode()</a>.
515 <p>
516 <div class="fragment"><pre>00119 {
517 00120         <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a1">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a2">EMode</a>.begin(); i &lt; <a class="code" href="modules_8cpp.html#a2">EMode</a>.end(); i++)
518 00121         {
519 00122                 <span class="keywordflow">if</span> ((i-&gt;modechar == modechar) &amp;&amp; (i-&gt;type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>))
520 00123                 {
521 00124                         i-&gt;list = <span class="keyword">true</span>;
522 00125                         <span class="keywordflow">return</span>;
523 00126                 }
524 00127         }
525 00128         <span class="keywordflow">return</span>;
526 00129 }
527 </pre></div>    </td>
528   </tr>
529 </table>
530 <a name="a11" doxytag="modules.cpp::modules"></a><p>
531 <table width="100%" cellpadding="2" cellspacing="0" border="0">
532   <tr>
533     <td class="md">
534       <table cellpadding="0" cellspacing="0" border="0">
535         <tr>
536           <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="classModule.html">Module</a>*&gt; modules </td>
537           <td class="md" valign="top">(&nbsp;</td>
538           <td class="md" nowrap valign="top">255&nbsp;</td>
539           <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
540           <td class="md" valign="top">)&nbsp;</td>
541           <td class="md" nowrap></td>
542         </tr>
543
544       </table>
545     </td>
546   </tr>
547 </table>
548 <table cellspacing=5 cellpadding=0 border=0>
549   <tr>
550     <td>
551       &nbsp;
552     </td>
553     <td>
554
555 <p>
556     </td>
557   </tr>
558 </table>
559 <hr><h2>Variable Documentation</h2>
560 <a name="a2" doxytag="modules.cpp::EMode"></a><p>
561 <table width="100%" cellpadding="2" cellspacing="0" border="0">
562   <tr>
563     <td class="md">
564       <table cellpadding="0" cellspacing="0" border="0">
565         <tr>
566           <td class="md" nowrap valign="top"> <a class="el" href="modules_8cpp.html#a0">ExtModeList</a> EMode
567       </table>
568     </td>
569   </tr>
570 </table>
571 <table cellspacing=5 cellpadding=0 border=0>
572   <tr>
573     <td>
574       &nbsp;
575     </td>
576     <td>
577
578 <p>
579
580 <p>
581 Definition at line <a class="el" href="modules_8cpp-source.html#l00036">36</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
582 <p>
583 Referenced by <a class="el" href="modules_8cpp-source.html#l00108">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00039">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00095">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00082">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00067">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00053">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00118">ModeMakeList()</a>.    </td>
584   </tr>
585 </table>
586 <a name="a3" doxytag="modules.cpp::MODCOUNT"></a><p>
587 <table width="100%" cellpadding="2" cellspacing="0" border="0">
588   <tr>
589     <td class="md">
590       <table cellpadding="0" cellspacing="0" border="0">
591         <tr>
592           <td class="md" nowrap valign="top"> int MODCOUNT = -1
593       </table>
594     </td>
595   </tr>
596 </table>
597 <table cellspacing=5 cellpadding=0 border=0>
598   <tr>
599     <td>
600       &nbsp;
601     </td>
602     <td>
603
604 <p>
605
606 <p>
607 Definition at line <a class="el" href="modules_8cpp-source.html#l00484">484</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.    </td>
608   </tr>
609 </table>
610 <hr><address style="align: right;"><small>Generated on Sat May 1 13:39:06 2004 for InspIRCd by
611 <a href="http://www.doxygen.org/index.html">
612 <img src="doxygen.png" alt="doxygen" align="middle" border=0 
613 width=110 height=53></a>1.3-rc3 </small></address>
614 </body>
615 </html>