summaryrefslogtreecommitdiff
path: root/docs/module-doc/channels_8cpp-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/module-doc/channels_8cpp-source.html')
-rw-r--r--docs/module-doc/channels_8cpp-source.html185
1 files changed, 93 insertions, 92 deletions
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html
index cf89697dc..d95edbda6 100644
--- a/docs/module-doc/channels_8cpp-source.html
+++ b/docs/module-doc/channels_8cpp-source.html
@@ -111,99 +111,100 @@
00104
<a name="l00105"></a><a class="code" href="channels_8cpp.html#a36">00105</a> <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#a36">log_file</a>;
00106
-00107
-00108 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
-00109
-<a name="l00110"></a><a class="code" href="channels_8cpp.html#a37">00110</a> std::vector&lt;ModeParameter&gt; <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>;
-00111
-<a name="l00112"></a><a class="code" href="classchanrec.html#a4">00112</a> <a class="code" href="classchanrec.html#a4">chanrec::chanrec</a>()
-00113 {
-00114 strcpy(<a class="code" href="classchanrec.html#o0">name</a>,<span class="stringliteral">""</span>);
-00115 strcpy(<a class="code" href="classchanrec.html#o1">custom_modes</a>,<span class="stringliteral">""</span>);
-00116 strcpy(<a class="code" href="classchanrec.html#o2">topic</a>,<span class="stringliteral">""</span>);
-00117 strcpy(<a class="code" href="classchanrec.html#o5">setby</a>,<span class="stringliteral">""</span>);
-00118 strcpy(<a class="code" href="classchanrec.html#o7">key</a>,<span class="stringliteral">""</span>);
-00119 <a class="code" href="classchanrec.html#o3">created</a> = <a class="code" href="classchanrec.html#o4">topicset</a> = <a class="code" href="classchanrec.html#o6">limit</a> = 0;
-00120 <a class="code" href="classchanrec.html#o8">topiclock</a> = <a class="code" href="classchanrec.html#o9">noexternal</a> = <a class="code" href="classchanrec.html#o10">inviteonly</a> = <a class="code" href="classchanrec.html#o11">moderated</a> = <a class="code" href="classchanrec.html#o12">secret</a> = <a class="code" href="classchanrec.html#o13">c_private</a> = <span class="keyword">false</span>;
-00121 }
-00122
-<a name="l00123"></a><a class="code" href="classchanrec.html#a0">00123</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a0">chanrec::SetCustomMode</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">bool</span> mode_on)
-00124 {
-00125 <span class="keywordflow">if</span> (mode_on) {
-00126 <span class="keywordtype">char</span> m[3];
-00127 m[0] = mode;
-00128 m[1] = <span class="charliteral">'\0'</span>;
-00129 <span class="keywordflow">if</span> (!strchr(this-&gt;custom_modes,mode))
-00130 {
-00131 strlcat(<a class="code" href="classchanrec.html#o1">custom_modes</a>,m,MAXMODES);
-00132 }
-00133 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode);
-00134 }
-00135 <span class="keywordflow">else</span> {
-00136
-00137 std::string a = this-&gt;<a class="code" href="classchanrec.html#o1">custom_modes</a>;
-00138 <span class="keywordtype">int</span> pos = a.find(mode);
-00139 a.erase(pos,1);
-00140 strncpy(this-&gt;custom_modes,a.c_str(),MAXMODES);
-00141
-00142 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this-&gt;custom_modes);
-00143 this-&gt;<a class="code" href="classchanrec.html#a1">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>);
-00144 }
-00145 }
-00146
+<a name="l00107"></a><a class="code" href="channels_8cpp.html#a37">00107</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a37">TIME</a>;
+00108
+00109 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
+00110
+<a name="l00111"></a><a class="code" href="channels_8cpp.html#a38">00111</a> std::vector&lt;ModeParameter&gt; <a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>;
+00112
+<a name="l00113"></a><a class="code" href="classchanrec.html#a4">00113</a> <a class="code" href="classchanrec.html#a4">chanrec::chanrec</a>()
+00114 {
+00115 strcpy(<a class="code" href="classchanrec.html#o0">name</a>,<span class="stringliteral">""</span>);
+00116 strcpy(<a class="code" href="classchanrec.html#o1">custom_modes</a>,<span class="stringliteral">""</span>);
+00117 strcpy(<a class="code" href="classchanrec.html#o2">topic</a>,<span class="stringliteral">""</span>);
+00118 strcpy(<a class="code" href="classchanrec.html#o5">setby</a>,<span class="stringliteral">""</span>);
+00119 strcpy(<a class="code" href="classchanrec.html#o7">key</a>,<span class="stringliteral">""</span>);
+00120 <a class="code" href="classchanrec.html#o3">created</a> = <a class="code" href="classchanrec.html#o4">topicset</a> = <a class="code" href="classchanrec.html#o6">limit</a> = 0;
+00121 <a class="code" href="classchanrec.html#o8">topiclock</a> = <a class="code" href="classchanrec.html#o9">noexternal</a> = <a class="code" href="classchanrec.html#o10">inviteonly</a> = <a class="code" href="classchanrec.html#o11">moderated</a> = <a class="code" href="classchanrec.html#o12">secret</a> = <a class="code" href="classchanrec.html#o13">c_private</a> = <span class="keyword">false</span>;
+00122 }
+00123
+<a name="l00124"></a><a class="code" href="classchanrec.html#a0">00124</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a0">chanrec::SetCustomMode</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">bool</span> mode_on)
+00125 {
+00126 <span class="keywordflow">if</span> (mode_on) {
+00127 <span class="keywordtype">char</span> m[3];
+00128 m[0] = mode;
+00129 m[1] = <span class="charliteral">'\0'</span>;
+00130 <span class="keywordflow">if</span> (!strchr(this-&gt;custom_modes,mode))
+00131 {
+00132 strlcat(<a class="code" href="classchanrec.html#o1">custom_modes</a>,m,MAXMODES);
+00133 }
+00134 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode);
+00135 }
+00136 <span class="keywordflow">else</span> {
+00137
+00138 std::string a = this-&gt;<a class="code" href="classchanrec.html#o1">custom_modes</a>;
+00139 <span class="keywordtype">int</span> pos = a.find(mode);
+00140 a.erase(pos,1);
+00141 strncpy(this-&gt;custom_modes,a.c_str(),MAXMODES);
+00142
+00143 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this-&gt;custom_modes);
+00144 this-&gt;<a class="code" href="classchanrec.html#a1">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>);
+00145 }
+00146 }
00147
-<a name="l00148"></a><a class="code" href="classchanrec.html#a1">00148</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a1">chanrec::SetCustomModeParam</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">char</span>* parameter,<span class="keywordtype">bool</span> mode_on)
-00149 {
-00150
-00151 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>);
-00152 <a class="code" href="classModeParameter.html">ModeParameter</a> M;
-00153 M.<a class="code" href="classModeParameter.html#o0">mode</a> = mode;
-00154 strlcpy(M.<a class="code" href="classModeParameter.html#o2">channel</a>,this-&gt;name,CHANMAX);
-00155 strlcpy(M.<a class="code" href="classModeParameter.html#o1">parameter</a>,parameter,MAXBUF);
-00156 <span class="keywordflow">if</span> (mode_on)
-00157 {
-00158 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter);
-00159 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.push_back(M);
-00160 }
-00161 <span class="keywordflow">else</span>
-00162 {
-00163 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size())
-00164 {
-00165 <span class="keywordflow">for</span> (vector&lt;ModeParameter&gt;::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i &lt; <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++)
-00166 {
-00167 <span class="keywordflow">if</span> ((i-&gt;mode == mode) &amp;&amp; (!strcasecmp(this-&gt;name,i-&gt;channel)))
-00168 {
-00169 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter);
-00170 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.erase(i);
-00171 <span class="keywordflow">return</span>;
-00172 }
-00173 }
-00174 }
-00175 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>);
-00176 }
-00177 }
-00178
-<a name="l00179"></a><a class="code" href="classchanrec.html#a2">00179</a> <span class="keywordtype">bool</span> <a class="code" href="classchanrec.html#a2">chanrec::IsCustomModeSet</a>(<span class="keywordtype">char</span> mode)
-00180 {
-00181 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Checking ISCustomModeSet: %c %s"</span>,mode,this-&gt;custom_modes);
-00182 <span class="keywordflow">return</span> (strchr(this-&gt;custom_modes,mode) != 0);
-00183 }
-00184
-<a name="l00185"></a><a class="code" href="classchanrec.html#a3">00185</a> std::string <a class="code" href="classchanrec.html#a3">chanrec::GetModeParameter</a>(<span class="keywordtype">char</span> mode)
-00186 {
-00187 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size())
-00188 {
-00189 <span class="keywordflow">for</span> (vector&lt;ModeParameter&gt;::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i &lt; <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++)
-00190 {
-00191 <span class="keywordflow">if</span> ((i-&gt;mode == mode) &amp;&amp; (!strcasecmp(this-&gt;name,i-&gt;channel)))
-00192 {
-00193 <span class="keywordflow">return</span> std::string(i-&gt;parameter);
-00194 }
-00195 }
-00196 }
-00197 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>);
-00198 }
-</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by
+00148
+<a name="l00149"></a><a class="code" href="classchanrec.html#a1">00149</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a1">chanrec::SetCustomModeParam</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">char</span>* parameter,<span class="keywordtype">bool</span> mode_on)
+00150 {
+00151
+00152 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>);
+00153 <a class="code" href="classModeParameter.html">ModeParameter</a> M;
+00154 M.<a class="code" href="classModeParameter.html#o0">mode</a> = mode;
+00155 strlcpy(M.<a class="code" href="classModeParameter.html#o2">channel</a>,this-&gt;name,CHANMAX);
+00156 strlcpy(M.<a class="code" href="classModeParameter.html#o1">parameter</a>,parameter,MAXBUF);
+00157 <span class="keywordflow">if</span> (mode_on)
+00158 {
+00159 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter);
+00160 <a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.push_back(M);
+00161 }
+00162 <span class="keywordflow">else</span>
+00163 {
+00164 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.size())
+00165 {
+00166 <span class="keywordflow">for</span> (vector&lt;ModeParameter&gt;::iterator i = <a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.begin(); i &lt; <a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.end(); i++)
+00167 {
+00168 <span class="keywordflow">if</span> ((i-&gt;mode == mode) &amp;&amp; (!strcasecmp(this-&gt;name,i-&gt;channel)))
+00169 {
+00170 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter);
+00171 <a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.erase(i);
+00172 <span class="keywordflow">return</span>;
+00173 }
+00174 }
+00175 }
+00176 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>);
+00177 }
+00178 }
+00179
+<a name="l00180"></a><a class="code" href="classchanrec.html#a2">00180</a> <span class="keywordtype">bool</span> <a class="code" href="classchanrec.html#a2">chanrec::IsCustomModeSet</a>(<span class="keywordtype">char</span> mode)
+00181 {
+00182 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Checking ISCustomModeSet: %c %s"</span>,mode,this-&gt;custom_modes);
+00183 <span class="keywordflow">return</span> (strchr(this-&gt;custom_modes,mode) != 0);
+00184 }
+00185
+<a name="l00186"></a><a class="code" href="classchanrec.html#a3">00186</a> std::string <a class="code" href="classchanrec.html#a3">chanrec::GetModeParameter</a>(<span class="keywordtype">char</span> mode)
+00187 {
+00188 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.size())
+00189 {
+00190 <span class="keywordflow">for</span> (vector&lt;ModeParameter&gt;::iterator i = <a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.begin(); i &lt; <a class="code" href="channels_8cpp.html#a38">custom_mode_params</a>.end(); i++)
+00191 {
+00192 <span class="keywordflow">if</span> ((i-&gt;mode == mode) &amp;&amp; (!strcasecmp(this-&gt;name,i-&gt;channel)))
+00193 {
+00194 <span class="keywordflow">return</span> std::string(i-&gt;parameter);
+00195 }
+00196 }
+00197 }
+00198 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>);
+00199 }
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.3 </small></address>