1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>InspIRCd: chanrec Class Reference</title>
4 <link href="inspircd.doxygen.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.4.4-20050815 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
8 <h1>chanrec Class Reference</h1><!-- doxytag: class="chanrec" --><!-- doxytag: inherits="Extensible" -->Holds all relevent information for a channel.
9 <a href="#_details">More...</a>
11 <code>#include <<a class="el" href="channels_8h-source.html">channels.h</a>></code>
13 Inheritance diagram for chanrec:<p><center><img src="classchanrec__inherit__graph.gif" border="0" usemap="#chanrec__inherit__map" alt="Inheritance graph"></center>
14 <map name="chanrec__inherit__map">
15 <area href="classExtensible.html" shape="rect" coords="7,81,89,108" alt="">
16 <area href="classclassbase.html" shape="rect" coords="8,7,88,33" alt="">
18 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for chanrec:<p><center><img src="classchanrec__coll__graph.gif" border="0" usemap="#chanrec__coll__map" alt="Collaboration graph"></center>
19 <map name="chanrec__coll__map">
20 <area href="classExtensible.html" shape="rect" coords="68,204,151,231" alt="">
21 <area href="classclassbase.html" shape="rect" coords="68,97,148,124" alt="">
23 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classchanrec-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
25 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
26 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29">SetCustomMode</a> (char mode, bool mode_on)</td></tr>
28 <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets or unsets a custom mode in the channels info. <a href="#SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29"></a><br></td></tr>
29 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">SetCustomModeParam</a> (char mode, char *parameter, bool mode_on)</td></tr>
31 <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets or unsets the parameters for a custom mode in a channels info. <a href="#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29"></a><br></td></tr>
32 <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#IsCustomModeSet_28char_20mode_29">IsCustomModeSet</a> (char mode)</td></tr>
34 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if a custom mode is set on a channel. <a href="#IsCustomModeSet_28char_20mode_29"></a><br></td></tr>
35 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#GetModeParameter_28char_20mode_29">GetModeParameter</a> (char mode)</td></tr>
37 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the parameter for a custom mode on a channel. <a href="#GetModeParameter_28char_20mode_29"></a><br></td></tr>
38 <tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#GetUserCounter_28_29">GetUserCounter</a> ()</td></tr>
40 <tr><td class="mdescLeft"> </td><td class="mdescRight">Obtain the channel "user counter" This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks. <a href="#GetUserCounter_28_29"></a><br></td></tr>
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#AddUser_28char_20_2Acastuser_29">AddUser</a> (char *castuser)</td></tr>
43 <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a user pointer to the internal reference list. <a href="#AddUser_28char_20_2Acastuser_29"></a><br></td></tr>
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#DelUser_28char_20_2Acastuser_29">DelUser</a> (char *castuser)</td></tr>
46 <tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a user pointer to the internal reference list. <a href="#DelUser_28char_20_2Acastuser_29"></a><br></td></tr>
47 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< char * > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#GetUsers_28_29">GetUsers</a> ()</td></tr>
49 <tr><td class="mdescLeft"> </td><td class="mdescRight">Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*. <a href="#GetUsers_28_29"></a><br></td></tr>
50 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#chanrec_28_29">chanrec</a> ()</td></tr>
52 <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a channel record and initialises it with default values. <a href="#chanrec_28_29"></a><br></td></tr>
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#_7Echanrec_28_29">~chanrec</a> ()</td></tr>
55 <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#name_5BCHANMAX_5D">name</a> [CHANMAX]</td></tr>
58 <tr><td class="mdescLeft"> </td><td class="mdescRight">The channels name. <a href="#name_5BCHANMAX_5D"></a><br></td></tr>
59 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a> [MAXMODES]</td></tr>
61 <tr><td class="mdescLeft"> </td><td class="mdescRight">Custom modes for the channel. <a href="#custom_5Fmodes_5BMAXMODES_5D"></a><br></td></tr>
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< char * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a></td></tr>
64 <tr><td class="mdescLeft"> </td><td class="mdescRight">User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!). <a href="#internal_5Fuserlist"></a><br></td></tr>
65 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a> [MAXBUF]</td></tr>
67 <tr><td class="mdescLeft"> </td><td class="mdescRight">Channel topic. <a href="#topic_5BMAXBUF_5D"></a><br></td></tr>
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#created">created</a></td></tr>
70 <tr><td class="mdescLeft"> </td><td class="mdescRight">Creation time. <a href="#created"></a><br></td></tr>
71 <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#topicset">topicset</a></td></tr>
73 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time topic was set. <a href="#topicset"></a><br></td></tr>
74 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a> [NICKMAX]</td></tr>
76 <tr><td class="mdescLeft"> </td><td class="mdescRight">The last user to set the topic. <a href="#setby_5BNICKMAX_5D"></a><br></td></tr>
77 <tr><td class="memItemLeft" nowrap align="right" valign="top">short int </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#limit">limit</a></td></tr>
79 <tr><td class="mdescLeft"> </td><td class="mdescRight">Contains the channel user limit. <a href="#limit"></a><br></td></tr>
80 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#key_5B_33_32_5D">key</a> [32]</td></tr>
82 <tr><td class="mdescLeft"> </td><td class="mdescRight">Contains the channel key. <a href="#key_5B_33_32_5D"></a><br></td></tr>
83 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#binarymodes">binarymodes</a></td></tr>
85 <tr><td class="mdescLeft"> </td><td class="mdescRight">Contains a bitmask of the CM_* builtin (RFC) binary mode symbols. <a href="#binarymodes"></a><br></td></tr>
86 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="channels_8h.html#BanList">BanList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classchanrec.html#bans">bans</a></td></tr>
88 <tr><td class="mdescLeft"> </td><td class="mdescRight">The list of all bans set on the channel. <a href="#bans"></a><br></td></tr>
90 <hr><a name="_details"></a><h2>Detailed Description</h2>
91 Holds all relevent information for a channel.
93 This class represents a channel, and contains its name, modes, time created, topic, topic set time, etc, and an instance of the BanList type.
97 Definition at line <a class="el" href="channels_8h-source.html#l00103">103</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
98 <a class="anchor" name="chanrec_28_29"></a><!-- doxytag: member="chanrec::chanrec" ref="chanrec_28_29" args="()" --><p>
99 <table class="mdTable" cellpadding="2" cellspacing="0">
102 <table cellpadding="0" cellspacing="0" border="0">
104 <td class="md" nowrap valign="top">chanrec::chanrec </td>
105 <td class="md" valign="top">( </td>
106 <td class="mdname1" valign="top" nowrap> </td>
107 <td class="md" valign="top"> ) </td>
108 <td class="md" nowrap></td>
114 <table cellspacing="5" cellpadding="0" border="0">
122 Creates a channel record and initialises it with default values.
126 Definition at line <a class="el" href="channels_8cpp-source.html#l00074">74</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
128 References <a class="el" href="channels_8h-source.html#l00147">binarymodes</a>, <a class="el" href="channels_8h-source.html#l00125">created</a>, <a class="el" href="channels_8h-source.html#l00112">custom_modes</a>, <a class="el" href="channels_8h-source.html#l00117">internal_userlist</a>, <a class="el" href="channels_8h-source.html#l00143">key</a>, <a class="el" href="channels_8h-source.html#l00138">limit</a>, <a class="el" href="channels_8h-source.html#l00108">name</a>, <a class="el" href="channels_8h-source.html#l00133">setby</a>, <a class="el" href="channels_8h-source.html#l00122">topic</a>, and <a class="el" href="channels_8h-source.html#l00129">topicset</a>.<div class="fragment"><pre class="fragment"><a name="l00075"></a>00075 {
129 <a name="l00076"></a>00076 strcpy(<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>,<span class="stringliteral">""</span>);
130 <a name="l00077"></a>00077 strcpy(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,<span class="stringliteral">""</span>);
131 <a name="l00078"></a>00078 strcpy(<a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>,<span class="stringliteral">""</span>);
132 <a name="l00079"></a>00079 strcpy(<a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>,<span class="stringliteral">""</span>);
133 <a name="l00080"></a>00080 strcpy(<a class="code" href="classchanrec.html#key_5B_33_32_5D">key</a>,<span class="stringliteral">""</span>);
134 <a name="l00081"></a>00081 <a class="code" href="classchanrec.html#created">created</a> = <a class="code" href="classchanrec.html#topicset">topicset</a> = <a class="code" href="classchanrec.html#limit">limit</a> = 0;
135 <a name="l00082"></a>00082 <a class="code" href="classchanrec.html#binarymodes">binarymodes</a> = 0;
136 <a name="l00083"></a>00083 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.clear();
137 <a name="l00084"></a>00084 }
143 <a class="anchor" name="_7Echanrec_28_29"></a><!-- doxytag: member="chanrec::~chanrec" ref="_7Echanrec_28_29" args="()" --><p>
144 <table class="mdTable" cellpadding="2" cellspacing="0">
147 <table cellpadding="0" cellspacing="0" border="0">
149 <td class="md" nowrap valign="top">virtual chanrec::~chanrec </td>
150 <td class="md" valign="top">( </td>
151 <td class="mdname1" valign="top" nowrap> </td>
152 <td class="md" valign="top"> ) </td>
153 <td class="md" nowrap><code> [inline, virtual]</code></td>
159 <table cellspacing="5" cellpadding="0" border="0">
169 Definition at line <a class="el" href="channels_8h-source.html#l00226">226</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<div class="fragment"><pre class="fragment"><a name="l00226"></a>00226 { <span class="comment">/* stub */</span> }
175 <hr><h2>Member Function Documentation</h2>
176 <a class="anchor" name="AddUser_28char_20_2Acastuser_29"></a><!-- doxytag: member="chanrec::AddUser" ref="AddUser_28char_20_2Acastuser_29" args="(char *castuser)" --><p>
177 <table class="mdTable" cellpadding="2" cellspacing="0">
180 <table cellpadding="0" cellspacing="0" border="0">
182 <td class="md" nowrap valign="top">void chanrec::AddUser </td>
183 <td class="md" valign="top">( </td>
184 <td class="md" nowrap valign="top">char * </td>
185 <td class="mdname1" valign="top" nowrap> <em>castuser</em> </td>
186 <td class="md" valign="top"> ) </td>
187 <td class="md" nowrap></td>
193 <table cellspacing="5" cellpadding="0" border="0">
201 Add a user pointer to the internal reference list.
203 <dl compact><dt><b>Parameters:</b></dt><dd>
204 <table border="0" cellspacing="2" cellpadding="0">
205 <tr><td valign="top"></td><td valign="top"><em>castuser</em> </td><td>This should be a pointer to a userrec, casted to char*</td></tr>
208 The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.
210 Definition at line <a class="el" href="channels_8cpp-source.html#l00167">167</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
212 References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00117">internal_userlist</a>, and <a class="el" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log()</a>.
214 Referenced by <a class="el" href="channels_8cpp-source.html#l00372">ForceChan()</a>.<div class="fragment"><pre class="fragment"><a name="l00168"></a>00168 {
215 <a name="l00169"></a>00169 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.push_back(castuser);
216 <a name="l00170"></a>00170 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Added casted user to channel's internal list"</span>);
217 <a name="l00171"></a>00171 }
223 <a class="anchor" name="DelUser_28char_20_2Acastuser_29"></a><!-- doxytag: member="chanrec::DelUser" ref="DelUser_28char_20_2Acastuser_29" args="(char *castuser)" --><p>
224 <table class="mdTable" cellpadding="2" cellspacing="0">
227 <table cellpadding="0" cellspacing="0" border="0">
229 <td class="md" nowrap valign="top">void chanrec::DelUser </td>
230 <td class="md" valign="top">( </td>
231 <td class="md" nowrap valign="top">char * </td>
232 <td class="mdname1" valign="top" nowrap> <em>castuser</em> </td>
233 <td class="md" valign="top"> ) </td>
234 <td class="md" nowrap></td>
240 <table cellspacing="5" cellpadding="0" border="0">
248 Delete a user pointer to the internal reference list.
250 <dl compact><dt><b>Parameters:</b></dt><dd>
251 <table border="0" cellspacing="2" cellpadding="0">
252 <tr><td valign="top"></td><td valign="top"><em>castuser</em> </td><td>This should be a pointer to a userrec, casted to char*</td></tr>
255 The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.
257 Definition at line <a class="el" href="channels_8cpp-source.html#l00173">173</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
259 References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00117">internal_userlist</a>, <a class="el" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log()</a>, and <a class="el" href="channels_8h-source.html#l00108">name</a>.
261 Referenced by <a class="el" href="channels_8cpp-source.html#l00401">del_channel()</a>, and <a class="el" href="channels_8cpp-source.html#l00459">kick_channel()</a>.<div class="fragment"><pre class="fragment"><a name="l00174"></a>00174 {
262 <a name="l00175"></a>00175 <span class="keywordflow">for</span> (std::vector<char*>::iterator a = <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.begin(); a < <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.end(); a++)
263 <a name="l00176"></a>00176 {
264 <a name="l00177"></a>00177 <span class="keywordflow">if</span> (*a == castuser)
265 <a name="l00178"></a>00178 {
266 <a name="l00179"></a>00179 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removed casted user from channel's internal list"</span>);
267 <a name="l00180"></a>00180 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.erase(a);
268 <a name="l00181"></a>00181 <span class="keywordflow">return</span>;
269 <a name="l00182"></a>00182 }
270 <a name="l00183"></a>00183 }
271 <a name="l00184"></a>00184 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">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#name_5BCHANMAX_5D">name</a>);
272 <a name="l00185"></a>00185 }
278 <a class="anchor" name="GetModeParameter_28char_20mode_29"></a><!-- doxytag: member="chanrec::GetModeParameter" ref="GetModeParameter_28char_20mode_29" args="(char mode)" --><p>
279 <table class="mdTable" cellpadding="2" cellspacing="0">
282 <table cellpadding="0" cellspacing="0" border="0">
284 <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> chanrec::GetModeParameter </td>
285 <td class="md" valign="top">( </td>
286 <td class="md" nowrap valign="top">char </td>
287 <td class="mdname1" valign="top" nowrap> <em>mode</em> </td>
288 <td class="md" valign="top"> ) </td>
289 <td class="md" nowrap></td>
295 <table cellspacing="5" cellpadding="0" border="0">
303 Returns the parameter for a custom mode on a channel.
305 <dl compact><dt><b>Parameters:</b></dt><dd>
306 <table border="0" cellspacing="2" cellpadding="0">
307 <tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>The mode character you wish to query</td></tr>
310 For example if "+L #foo" is set, and you pass this method 'L', it will return 'foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.<p>
311 <dl compact><dt><b>Returns:</b></dt><dd>The parameter for this mode is returned, or an empty string</dd></dl>
314 Definition at line <a class="el" href="channels_8cpp-source.html#l00147">147</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
316 References <a class="el" href="channels_8cpp-source.html#l00070">custom_mode_params</a>.<div class="fragment"><pre class="fragment"><a name="l00148"></a>00148 {
317 <a name="l00149"></a>00149 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size())
318 <a name="l00150"></a>00150 {
319 <a name="l00151"></a>00151 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++)
320 <a name="l00152"></a>00152 {
321 <a name="l00153"></a>00153 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
322 <a name="l00154"></a>00154 {
323 <a name="l00155"></a>00155 <span class="keywordflow">return</span> i->parameter;
324 <a name="l00156"></a>00156 }
325 <a name="l00157"></a>00157 }
326 <a name="l00158"></a>00158 }
327 <a name="l00159"></a>00159 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
328 <a name="l00160"></a>00160 }
334 <a class="anchor" name="GetUserCounter_28_29"></a><!-- doxytag: member="chanrec::GetUserCounter" ref="GetUserCounter_28_29" args="()" --><p>
335 <table class="mdTable" cellpadding="2" cellspacing="0">
338 <table cellpadding="0" cellspacing="0" border="0">
340 <td class="md" nowrap valign="top">long chanrec::GetUserCounter </td>
341 <td class="md" valign="top">( </td>
342 <td class="mdname1" valign="top" nowrap> </td>
343 <td class="md" valign="top"> ) </td>
344 <td class="md" nowrap></td>
350 <table cellspacing="5" cellpadding="0" border="0">
358 Obtain the channel "user counter" This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks.
360 <dl compact><dt><b>Returns:</b></dt><dd>The number of users on this channel</dd></dl>
363 Definition at line <a class="el" href="channels_8cpp-source.html#l00162">162</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00163"></a>00163 {
364 <a name="l00164"></a>00164 <span class="keywordflow">return</span> (this->internal_userlist.size());
365 <a name="l00165"></a>00165 }
371 <a class="anchor" name="GetUsers_28_29"></a><!-- doxytag: member="chanrec::GetUsers" ref="GetUsers_28_29" args="()" --><p>
372 <table class="mdTable" cellpadding="2" cellspacing="0">
375 <table cellpadding="0" cellspacing="0" border="0">
377 <td class="md" nowrap valign="top">std::vector< char * > * chanrec::GetUsers </td>
378 <td class="md" valign="top">( </td>
379 <td class="mdname1" valign="top" nowrap> </td>
380 <td class="md" valign="top"> ) </td>
381 <td class="md" nowrap></td>
387 <table cellspacing="5" cellpadding="0" border="0">
395 Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*.
397 These are used for rapid comparison to determine channel membership for PRIVMSG, NOTICE, QUIT, PART etc. The resulting pointer to the vector should be considered readonly and only modified via AddUser and DelUser.<p>
398 <dl compact><dt><b>Returns:</b></dt><dd>This function returns a vector of userrec pointers, each of which has been casted to char* to prevent circular references</dd></dl>
401 Definition at line <a class="el" href="channels_8cpp-source.html#l00187">187</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
403 References <a class="el" href="channels_8h-source.html#l00117">internal_userlist</a>.
405 Referenced by <a class="el" href="modules_8cpp-source.html#l00374">Server::GetUsers()</a>.<div class="fragment"><pre class="fragment"><a name="l00188"></a>00188 {
406 <a name="l00189"></a>00189 <span class="keywordflow">return</span> &<a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>;
407 <a name="l00190"></a>00190 }
413 <a class="anchor" name="IsCustomModeSet_28char_20mode_29"></a><!-- doxytag: member="chanrec::IsCustomModeSet" ref="IsCustomModeSet_28char_20mode_29" args="(char mode)" --><p>
414 <table class="mdTable" cellpadding="2" cellspacing="0">
417 <table cellpadding="0" cellspacing="0" border="0">
419 <td class="md" nowrap valign="top">bool chanrec::IsCustomModeSet </td>
420 <td class="md" valign="top">( </td>
421 <td class="md" nowrap valign="top">char </td>
422 <td class="mdname1" valign="top" nowrap> <em>mode</em> </td>
423 <td class="md" valign="top"> ) </td>
424 <td class="md" nowrap></td>
430 <table cellspacing="5" cellpadding="0" border="0">
438 Returns true if a custom mode is set on a channel.
440 <dl compact><dt><b>Parameters:</b></dt><dd>
441 <table border="0" cellspacing="2" cellpadding="0">
442 <tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>The mode character you wish to query </td></tr>
445 <dl compact><dt><b>Returns:</b></dt><dd>True if the custom mode is set, false if otherwise</dd></dl>
448 Definition at line <a class="el" href="channels_8cpp-source.html#l00142">142</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00143"></a>00143 {
449 <a name="l00144"></a>00144 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode));
450 <a name="l00145"></a>00145 }
456 <a class="anchor" name="SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29"></a><!-- doxytag: member="chanrec::SetCustomMode" ref="SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29" args="(char mode, bool mode_on)" --><p>
457 <table class="mdTable" cellpadding="2" cellspacing="0">
460 <table cellpadding="0" cellspacing="0" border="0">
462 <td class="md" nowrap valign="top">void chanrec::SetCustomMode </td>
463 <td class="md" valign="top">( </td>
464 <td class="md" nowrap valign="top">char </td>
465 <td class="mdname" nowrap> <em>mode</em>, </td>
468 <td class="md" nowrap align="right"></td>
470 <td class="md" nowrap>bool </td>
471 <td class="mdname" nowrap> <em>mode_on</em></td>
475 <td class="md">) </td>
476 <td class="md" colspan="2"></td>
482 <table cellspacing="5" cellpadding="0" border="0">
490 Sets or unsets a custom mode in the channels info.
492 <dl compact><dt><b>Parameters:</b></dt><dd>
493 <table border="0" cellspacing="2" cellpadding="0">
494 <tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>The mode character to set or unset </td></tr>
495 <tr><td valign="top"></td><td valign="top"><em>mode_on</em> </td><td>True if you want to set the mode or false if you want to remove it</td></tr>
500 Definition at line <a class="el" href="channels_8cpp-source.html#l00086">86</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
502 References <a class="el" href="channels_8h-source.html#l00112">custom_modes</a>, <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log()</a>, and <a class="el" href="channels_8cpp-source.html#l00111">SetCustomModeParam()</a>.<div class="fragment"><pre class="fragment"><a name="l00087"></a>00087 {
503 <a name="l00088"></a>00088 <span class="keywordflow">if</span> (mode_on) {
504 <a name="l00089"></a>00089 <span class="keyword">static</span> <span class="keywordtype">char</span> m[3];
505 <a name="l00090"></a>00090 m[0] = mode;
506 <a name="l00091"></a>00091 m[1] = <span class="charliteral">'\0'</span>;
507 <a name="l00092"></a>00092 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode))
508 <a name="l00093"></a>00093 {
509 <a name="l00094"></a>00094 strlcat(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,m,MAXMODES);
510 <a name="l00095"></a>00095 }
511 <a name="l00096"></a>00096 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode);
512 <a name="l00097"></a>00097 }
513 <a name="l00098"></a>00098 <span class="keywordflow">else</span> {
514 <a name="l00099"></a>00099
515 <a name="l00100"></a>00100 <a class="code" href="namespaceirc.html#string">std::string</a> a = this-><a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>;
516 <a name="l00101"></a>00101 <span class="keywordtype">int</span> pos = a.find(mode);
517 <a name="l00102"></a>00102 a.erase(pos,1);
518 <a name="l00103"></a>00103 strncpy(this->custom_modes,a.c_str(),MAXMODES);
519 <a name="l00104"></a>00104
520 <a name="l00105"></a>00105 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes);
521 <a name="l00106"></a>00106 this-><a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>);
522 <a name="l00107"></a>00107 }
523 <a name="l00108"></a>00108 }
529 <a class="anchor" name="SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29"></a><!-- doxytag: member="chanrec::SetCustomModeParam" ref="SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29" args="(char mode, char *parameter, bool mode_on)" --><p>
530 <table class="mdTable" cellpadding="2" cellspacing="0">
533 <table cellpadding="0" cellspacing="0" border="0">
535 <td class="md" nowrap valign="top">void chanrec::SetCustomModeParam </td>
536 <td class="md" valign="top">( </td>
537 <td class="md" nowrap valign="top">char </td>
538 <td class="mdname" nowrap> <em>mode</em>, </td>
541 <td class="md" nowrap align="right"></td>
543 <td class="md" nowrap>char * </td>
544 <td class="mdname" nowrap> <em>parameter</em>, </td>
547 <td class="md" nowrap align="right"></td>
549 <td class="md" nowrap>bool </td>
550 <td class="mdname" nowrap> <em>mode_on</em></td>
554 <td class="md">) </td>
555 <td class="md" colspan="2"></td>
561 <table cellspacing="5" cellpadding="0" border="0">
569 Sets or unsets the parameters for a custom mode in a channels info.
571 <dl compact><dt><b>Parameters:</b></dt><dd>
572 <table border="0" cellspacing="2" cellpadding="0">
573 <tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>The mode character to set or unset </td></tr>
574 <tr><td valign="top"></td><td valign="top"><em>parameter</em> </td><td>The parameter string to associate with this mode character </td></tr>
575 <tr><td valign="top"></td><td valign="top"><em>mode_on</em> </td><td>True if you want to set the mode or false if you want to remove it</td></tr>
580 Definition at line <a class="el" href="channels_8cpp-source.html#l00111">111</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.
582 References <a class="el" href="channels_8h-source.html#l00084">ModeParameter::channel</a>, <a class="el" href="channels_8cpp-source.html#l00070">custom_mode_params</a>, <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log()</a>, <a class="el" href="channels_8h-source.html#l00082">ModeParameter::mode</a>, and <a class="el" href="channels_8h-source.html#l00083">ModeParameter::parameter</a>.
584 Referenced by <a class="el" href="channels_8cpp-source.html#l00086">SetCustomMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00112"></a>00112 {
585 <a name="l00113"></a>00113
586 <a name="l00114"></a>00114 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>);
587 <a name="l00115"></a>00115 <a class="code" href="classModeParameter.html">ModeParameter</a> M;
588 <a name="l00116"></a>00116 M.<a class="code" href="classModeParameter.html#mode">mode</a> = mode;
589 <a name="l00117"></a>00117 strlcpy(M.<a class="code" href="classModeParameter.html#channel_5BCHANMAX_5D">channel</a>,this->name,CHANMAX);
590 <a name="l00118"></a>00118 strlcpy(M.<a class="code" href="classModeParameter.html#parameter_5BMAXBUF_5D">parameter</a>,parameter,MAXBUF);
591 <a name="l00119"></a>00119 <span class="keywordflow">if</span> (mode_on)
592 <a name="l00120"></a>00120 {
593 <a name="l00121"></a>00121 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter);
594 <a name="l00122"></a>00122 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.push_back(M);
595 <a name="l00123"></a>00123 }
596 <a name="l00124"></a>00124 <span class="keywordflow">else</span>
597 <a name="l00125"></a>00125 {
598 <a name="l00126"></a>00126 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size())
599 <a name="l00127"></a>00127 {
600 <a name="l00128"></a>00128 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++)
601 <a name="l00129"></a>00129 {
602 <a name="l00130"></a>00130 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
603 <a name="l00131"></a>00131 {
604 <a name="l00132"></a>00132 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter);
605 <a name="l00133"></a>00133 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.erase(i);
606 <a name="l00134"></a>00134 <span class="keywordflow">return</span>;
607 <a name="l00135"></a>00135 }
608 <a name="l00136"></a>00136 }
609 <a name="l00137"></a>00137 }
610 <a name="l00138"></a>00138 <a class="code" href="globals_8h.html#log_28int_20level_2C_20char_20_2Atext_2C_2E_2E_2E_29">log</a>(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>);
611 <a name="l00139"></a>00139 }
612 <a name="l00140"></a>00140 }
618 <hr><h2>Member Data Documentation</h2>
619 <a class="anchor" name="bans"></a><!-- doxytag: member="chanrec::bans" ref="bans" args="" --><p>
620 <table class="mdTable" cellpadding="2" cellspacing="0">
623 <table cellpadding="0" cellspacing="0" border="0">
625 <td class="md" nowrap valign="top"><a class="el" href="channels_8h.html#BanList">BanList</a> <a class="el" href="classchanrec.html#bans">chanrec::bans</a> </td>
631 <table cellspacing="5" cellpadding="0" border="0">
639 The list of all bans set on the channel.
643 Definition at line <a class="el" href="channels_8h-source.html#l00151">151</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
645 Referenced by <a class="el" href="channels_8cpp-source.html#l00195">add_channel()</a>. </td>
648 <a class="anchor" name="binarymodes"></a><!-- doxytag: member="chanrec::binarymodes" ref="binarymodes" args="" --><p>
649 <table class="mdTable" cellpadding="2" cellspacing="0">
652 <table cellpadding="0" cellspacing="0" border="0">
654 <td class="md" nowrap valign="top">char <a class="el" href="classchanrec.html#binarymodes">chanrec::binarymodes</a> </td>
660 <table cellspacing="5" cellpadding="0" border="0">
668 Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.
672 Definition at line <a class="el" href="channels_8h-source.html#l00147">147</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
674 Referenced by <a class="el" href="channels_8cpp-source.html#l00195">add_channel()</a>, and <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>. </td>
677 <a class="anchor" name="created"></a><!-- doxytag: member="chanrec::created" ref="created" args="" --><p>
678 <table class="mdTable" cellpadding="2" cellspacing="0">
681 <table cellpadding="0" cellspacing="0" border="0">
683 <td class="md" nowrap valign="top">time_t <a class="el" href="classchanrec.html#created">chanrec::created</a> </td>
689 <table cellspacing="5" cellpadding="0" border="0">
701 Definition at line <a class="el" href="channels_8h-source.html#l00125">125</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
703 Referenced by <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>. </td>
706 <a class="anchor" name="custom_5Fmodes_5BMAXMODES_5D"></a><!-- doxytag: member="chanrec::custom_modes" ref="custom_5Fmodes_5BMAXMODES_5D" args="[MAXMODES]" --><p>
707 <table class="mdTable" cellpadding="2" cellspacing="0">
710 <table cellpadding="0" cellspacing="0" border="0">
712 <td class="md" nowrap valign="top">char <a class="el" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">chanrec::custom_modes</a>[MAXMODES] </td>
718 <table cellspacing="5" cellpadding="0" border="0">
726 Custom modes for the channel.
728 Plugins may use this field in any way they see fit.
730 Definition at line <a class="el" href="channels_8h-source.html#l00112">112</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
732 Referenced by <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>, and <a class="el" href="channels_8cpp-source.html#l00086">SetCustomMode()</a>. </td>
735 <a class="anchor" name="internal_5Fuserlist"></a><!-- doxytag: member="chanrec::internal_userlist" ref="internal_5Fuserlist" args="" --><p>
736 <table class="mdTable" cellpadding="2" cellspacing="0">
739 <table cellpadding="0" cellspacing="0" border="0">
741 <td class="md" nowrap valign="top">std::vector<char*> <a class="el" href="classchanrec.html#internal_5Fuserlist">chanrec::internal_userlist</a> </td>
747 <table cellspacing="5" cellpadding="0" border="0">
755 User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!).
759 Definition at line <a class="el" href="channels_8h-source.html#l00117">117</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
761 Referenced by <a class="el" href="channels_8cpp-source.html#l00167">AddUser()</a>, <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00173">DelUser()</a>, and <a class="el" href="channels_8cpp-source.html#l00187">GetUsers()</a>. </td>
764 <a class="anchor" name="key_5B_33_32_5D"></a><!-- doxytag: member="chanrec::key" ref="key_5B_33_32_5D" args="[32]" --><p>
765 <table class="mdTable" cellpadding="2" cellspacing="0">
768 <table cellpadding="0" cellspacing="0" border="0">
770 <td class="md" nowrap valign="top">char <a class="el" href="classchanrec.html#key_5B_33_32_5D">chanrec::key</a>[32] </td>
776 <table cellspacing="5" cellpadding="0" border="0">
784 Contains the channel key.
786 If this value is an empty string, there is no channel key in place.
788 Definition at line <a class="el" href="channels_8h-source.html#l00143">143</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
790 Referenced by <a class="el" href="channels_8cpp-source.html#l00195">add_channel()</a>, and <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>. </td>
793 <a class="anchor" name="limit"></a><!-- doxytag: member="chanrec::limit" ref="limit" args="" --><p>
794 <table class="mdTable" cellpadding="2" cellspacing="0">
797 <table cellpadding="0" cellspacing="0" border="0">
799 <td class="md" nowrap valign="top">short int <a class="el" href="classchanrec.html#limit">chanrec::limit</a> </td>
805 <table cellspacing="5" cellpadding="0" border="0">
813 Contains the channel user limit.
815 If this value is zero, there is no limit in place.
817 Definition at line <a class="el" href="channels_8h-source.html#l00138">138</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
819 Referenced by <a class="el" href="channels_8cpp-source.html#l00195">add_channel()</a>, and <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>. </td>
822 <a class="anchor" name="name_5BCHANMAX_5D"></a><!-- doxytag: member="chanrec::name" ref="name_5BCHANMAX_5D" args="[CHANMAX]" --><p>
823 <table class="mdTable" cellpadding="2" cellspacing="0">
826 <table cellpadding="0" cellspacing="0" border="0">
828 <td class="md" nowrap valign="top">char <a class="el" href="classchanrec.html#name_5BCHANMAX_5D">chanrec::name</a>[CHANMAX] </td>
834 <table cellspacing="5" cellpadding="0" border="0">
846 Definition at line <a class="el" href="channels_8h-source.html#l00108">108</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
848 Referenced by <a class="el" href="channels_8cpp-source.html#l00195">add_channel()</a>, <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00401">del_channel()</a>, <a class="el" href="channels_8cpp-source.html#l00173">DelUser()</a>, <a class="el" href="channels_8cpp-source.html#l00372">ForceChan()</a>, <a class="el" href="channels_8cpp-source.html#l00459">kick_channel()</a>, and <a class="el" href="modules_8cpp-source.html#l00610">Server::PseudoToUser()</a>. </td>
851 <a class="anchor" name="setby_5BNICKMAX_5D"></a><!-- doxytag: member="chanrec::setby" ref="setby_5BNICKMAX_5D" args="[NICKMAX]" --><p>
852 <table class="mdTable" cellpadding="2" cellspacing="0">
855 <table cellpadding="0" cellspacing="0" border="0">
857 <td class="md" nowrap valign="top">char <a class="el" href="classchanrec.html#setby_5BNICKMAX_5D">chanrec::setby</a>[NICKMAX] </td>
863 <table cellspacing="5" cellpadding="0" border="0">
871 The last user to set the topic.
873 If this member is an empty string, no topic was ever set.
875 Definition at line <a class="el" href="channels_8h-source.html#l00133">133</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
877 Referenced by <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00372">ForceChan()</a>, and <a class="el" href="modules_8cpp-source.html#l00610">Server::PseudoToUser()</a>. </td>
880 <a class="anchor" name="topic_5BMAXBUF_5D"></a><!-- doxytag: member="chanrec::topic" ref="topic_5BMAXBUF_5D" args="[MAXBUF]" --><p>
881 <table class="mdTable" cellpadding="2" cellspacing="0">
884 <table cellpadding="0" cellspacing="0" border="0">
886 <td class="md" nowrap valign="top">char <a class="el" href="classchanrec.html#topic_5BMAXBUF_5D">chanrec::topic</a>[MAXBUF] </td>
892 <table cellspacing="5" cellpadding="0" border="0">
902 If this is an empty string, no channel topic is set.
904 Definition at line <a class="el" href="channels_8h-source.html#l00122">122</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
906 Referenced by <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00372">ForceChan()</a>, and <a class="el" href="modules_8cpp-source.html#l00610">Server::PseudoToUser()</a>. </td>
909 <a class="anchor" name="topicset"></a><!-- doxytag: member="chanrec::topicset" ref="topicset" args="" --><p>
910 <table class="mdTable" cellpadding="2" cellspacing="0">
913 <table cellpadding="0" cellspacing="0" border="0">
915 <td class="md" nowrap valign="top">time_t <a class="el" href="classchanrec.html#topicset">chanrec::topicset</a> </td>
921 <table cellspacing="5" cellpadding="0" border="0">
931 If no topic was ever set, this will be equal to <a class="el" href="classchanrec.html#created">chanrec::created</a>
933 Definition at line <a class="el" href="channels_8h-source.html#l00129">129</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.
935 Referenced by <a class="el" href="channels_8cpp-source.html#l00074">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00372">ForceChan()</a>, and <a class="el" href="modules_8cpp-source.html#l00610">Server::PseudoToUser()</a>. </td>
938 <hr>The documentation for this class was generated from the following files:<ul>
939 <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>
940 <hr size="1"><address style="align: right;"><small>Generated on Thu Dec 15 11:14:17 2005 for InspIRCd by
941 <a href="http://www.doxygen.org/index.html">
942 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address>