diff options
Diffstat (limited to 'docs/module-doc/channels_8cpp-source.html')
-rw-r--r-- | docs/module-doc/channels_8cpp-source.html | 75 |
1 files changed, 35 insertions, 40 deletions
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index ac07b4d77..f91ebef7e 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -100,7 +100,7 @@ 00093 <a name="l00094"></a><a class="code" href="channels_8cpp.html#a28">00094</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a28">boundPortCount</a>; <a name="l00095"></a><a class="code" href="channels_8cpp.html#a29">00095</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a29">portCount</a>; -<a name="l00096"></a><a class="code" href="channels_8cpp.html#a30">00096</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a30">UDPportCount</a>; +<a name="l00096"></a><a class="code" href="channels_8cpp.html#a30">00096</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a30">SERVERportCount</a>; <a name="l00097"></a><a class="code" href="channels_8cpp.html#a31">00097</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a31">ports</a>[MAXSOCKS]; <a name="l00098"></a><a class="code" href="channels_8cpp.html#a32">00098</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a32">defaultRoute</a>; 00099 @@ -199,56 +199,51 @@ 00192 { 00193 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) 00194 { -00195 <span class="keywordflow">return</span> std::string(i->parameter); +00195 <span class="keywordflow">return</span> i->parameter; 00196 } 00197 } 00198 } -00199 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>); +00199 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; 00200 } 00201 <a name="l00202"></a><a class="code" href="classchanrec.html#a4">00202</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a4">chanrec::IncUserCounter</a>() 00203 { -00204 this-><a class="code" href="classchanrec.html#o2">users</a>++; -00205 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Incremented channel user count for %s to %lu"</span>,<a class="code" href="classchanrec.html#o0">name</a>,(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>)<a class="code" href="classchanrec.html#o2">users</a>); -00206 } -00207 -<a name="l00208"></a><a class="code" href="classchanrec.html#a5">00208</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a5">chanrec::DecUserCounter</a>() -00209 { -00210 <span class="keywordflow">if</span> (this-><a class="code" href="classchanrec.html#o2">users</a> > 0) -00211 this-><a class="code" href="classchanrec.html#o2">users</a>--; -00212 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Decremented channel user count for %s to %lu"</span>,<a class="code" href="classchanrec.html#o0">name</a>,(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>)<a class="code" href="classchanrec.html#o2">users</a>); +00204 } +00205 +<a name="l00206"></a><a class="code" href="classchanrec.html#a5">00206</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a5">chanrec::DecUserCounter</a>() +00207 { +00208 } +00209 +<a name="l00210"></a><a class="code" href="classchanrec.html#a6">00210</a> <span class="keywordtype">long</span> <a class="code" href="classchanrec.html#a6">chanrec::GetUserCounter</a>() +00211 { +00212 <span class="keywordflow">return</span> (this-><a class="code" href="classchanrec.html#o3">internal_userlist</a>.size()); 00213 } 00214 -<a name="l00215"></a><a class="code" href="classchanrec.html#a6">00215</a> <span class="keywordtype">long</span> <a class="code" href="classchanrec.html#a6">chanrec::GetUserCounter</a>() +<a name="l00215"></a><a class="code" href="classchanrec.html#a7">00215</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a7">chanrec::AddUser</a>(<span class="keywordtype">char</span>* castuser) 00216 { -00217 <span class="keywordflow">return</span> (this-><a class="code" href="classchanrec.html#o2">users</a>); -00218 } -00219 -<a name="l00220"></a><a class="code" href="classchanrec.html#a7">00220</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a7">chanrec::AddUser</a>(<span class="keywordtype">char</span>* castuser) -00221 { -00222 <a class="code" href="classchanrec.html#o3">internal_userlist</a>.push_back(castuser); -00223 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Added casted user to channel's internal list"</span>); -00224 } -00225 -<a name="l00226"></a><a class="code" href="classchanrec.html#a8">00226</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a8">chanrec::DelUser</a>(<span class="keywordtype">char</span>* castuser) -00227 { -00228 <span class="keywordflow">for</span> (std::vector<char*>::iterator a = <a class="code" href="classchanrec.html#o3">internal_userlist</a>.begin(); a < <a class="code" href="classchanrec.html#o3">internal_userlist</a>.end(); a++) -00229 { -00230 <span class="keywordflow">if</span> (*a == castuser) -00231 { -00232 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Removed casted user from channel's internal list"</span>); -00233 <a class="code" href="classchanrec.html#o3">internal_userlist</a>.erase(a); -00234 <span class="keywordflow">return</span>; -00235 } -00236 } -00237 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!"</span>,<a class="code" href="classchanrec.html#o0">name</a>); +00217 <a class="code" href="classchanrec.html#o3">internal_userlist</a>.push_back(castuser); +00218 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Added casted user to channel's internal list"</span>); +00219 } +00220 +<a name="l00221"></a><a class="code" href="classchanrec.html#a8">00221</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a8">chanrec::DelUser</a>(<span class="keywordtype">char</span>* castuser) +00222 { +00223 <span class="keywordflow">for</span> (std::vector<char*>::iterator a = <a class="code" href="classchanrec.html#o3">internal_userlist</a>.begin(); a < <a class="code" href="classchanrec.html#o3">internal_userlist</a>.end(); a++) +00224 { +00225 <span class="keywordflow">if</span> (*a == castuser) +00226 { +00227 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Removed casted user from channel's internal list"</span>); +00228 <a class="code" href="classchanrec.html#o3">internal_userlist</a>.erase(a); +00229 <span class="keywordflow">return</span>; +00230 } +00231 } +00232 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!"</span>,<a class="code" href="classchanrec.html#o0">name</a>); +00233 } +00234 +<a name="l00235"></a><a class="code" href="classchanrec.html#a9">00235</a> std::vector<char*> *<a class="code" href="classchanrec.html#a9">chanrec::GetUsers</a>() +00236 { +00237 <span class="keywordflow">return</span> &<a class="code" href="classchanrec.html#o3">internal_userlist</a>; 00238 } -00239 -<a name="l00240"></a><a class="code" href="classchanrec.html#a9">00240</a> std::vector<char*> *<a class="code" href="classchanrec.html#a9">chanrec::GetUsers</a>() -00241 { -00242 <span class="keywordflow">return</span> &<a class="code" href="classchanrec.html#o3">internal_userlist</a>; -00243 } -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat May 7 15:34:20 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu May 12 02:25:11 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> |