summaryrefslogtreecommitdiff
path: root/docs/module-doc/classchanrec.html
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-03 15:46:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-03 15:46:53 +0000
commitabdb186046bcdd83aefbc4171a00bd1ad7ec963c (patch)
tree8fad649a8a767a12e19c0eef85d78d5f4ef04618 /docs/module-doc/classchanrec.html
parent8a1923c253a798f0823cc87d3cfdef012c533871 (diff)
Added support for module-defined chanmodes with no parameters
Fixed minor typo in example conf Added new stylesheet and docs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@362 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/module-doc/classchanrec.html')
-rw-r--r--docs/module-doc/classchanrec.html44
1 files changed, 35 insertions, 9 deletions
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html
index 24f19b02d..7d4a1a061 100644
--- a/docs/module-doc/classchanrec.html
+++ b/docs/module-doc/classchanrec.html
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>chanrec class Reference</title>
-<link href="doxygen.css" rel="stylesheet" type="text/css">
+<link href="inspircd.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc3 -->
<center>
@@ -25,7 +25,7 @@ Inheritance diagram for chanrec:<p><center><img src="classchanrec__inherit__grap
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classchanrec.html#a0">SetCustomMode</a> (char mode, bool mode_on)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets or unsets a custom mode in the channels info.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classchanrec.html#a1">SetCustomModeParam</a> (char mode, char *parameter, bool mode_on)</td></tr>
-<tr><td>&nbsp;</td><td><font size=-1><em>Sets or unsets the parameterrs for a custom mode in a channels info.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
+<tr><td>&nbsp;</td><td><font size=-1><em>Sets or unsets the parameters for a custom mode in a channels info.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classchanrec.html#a2">chanrec</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a channel record and initialises it with default values.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classchanrec.html#a3">~chanrec</a> ()</td></tr>
@@ -189,8 +189,32 @@ Sets or unsets a custom mode in the channels info.
<p>
Definition at line <a class="el" href="channels_8cpp-source.html#l00017">17</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
<p>
+References <a class="el" href="channels_8h-source.html#l00079">custom_modes</a>.
+<p>
<div class="fragment"><pre>00018 {
-00019 }
+00019 <span class="keywordflow">if</span> (mode_on) {
+00020 <span class="keywordtype">char</span> m[3];
+00021 m[0] = mode;
+00022 m[1] = <span class="charliteral">'\0'</span>;
+00023 <span class="keywordflow">if</span> (!strchr(this-&gt;custom_modes,mode))
+00024 {
+00025 strncat(custom_modes,m,MAXMODES);
+00026 }
+00027 log(DEBUG,<span class="stringliteral">"Custom mode %c set"</span>,mode);
+00028 }
+00029 <span class="keywordflow">else</span> {
+00030 <span class="keywordtype">char</span> temp[MAXMODES];
+00031 <span class="keywordtype">int</span> count = 0;
+00032 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> q = 0; q &lt; strlen(custom_modes); q++) {
+00033 <span class="keywordflow">if</span> (<a class="code" href="classchanrec.html#m1">custom_modes</a>[q] != mode) {
+00034 temp[count++] = mode;
+00035 }
+00036 }
+00037 temp[count] = <span class="charliteral">'\0'</span>;
+00038 strncpy(custom_modes,temp,MAXMODES);
+00039 log(DEBUG,<span class="stringliteral">"Custom mode %c removed"</span>,mode);
+00040 }
+00041 }
</pre></div> </td>
</tr>
</table>
@@ -235,14 +259,14 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00017">17</a>
<td>
<p>
-Sets or unsets the parameterrs for a custom mode in a channels info.
+Sets or unsets the parameters for a custom mode in a channels info.
<p>
<p>
-Definition at line <a class="el" href="channels_8cpp-source.html#l00021">21</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
+Definition at line <a class="el" href="channels_8cpp-source.html#l00043">43</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
<p>
-<div class="fragment"><pre>00022 {
-00023 }
+<div class="fragment"><pre>00044 {
+00045 }
</pre></div> </td>
</tr>
</table>
@@ -352,7 +376,9 @@ Custom modes for the channel.
<p>
Plugins may use this field in any way they see fit.
<p>
-Definition at line <a class="el" href="channels_8h-source.html#l00079">79</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. </td>
+Definition at line <a class="el" href="channels_8h-source.html#l00079">79</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
+<p>
+Referenced by <a class="el" href="channels_8cpp-source.html#l00017">SetCustomMode()</a>. </td>
</tr>
</table>
<a name="m10" doxytag="chanrec::inviteonly"></a><p>
@@ -657,7 +683,7 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00006">chanrec()</a
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="channels_8h-source.html">channels.h</a><li><a class="el" href="channels_8cpp-source.html">channels.cpp</a></ul>
-<hr><address style="align: right;"><small>Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by
+<hr><address style="align: right;"><small>Generated on Sat Apr 3 16:36:10 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>