]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/module-doc/classuserrec.html
Removed some deprecated documentation (html)
[user/henk/code/inspircd.git] / docs / module-doc / classuserrec.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>InspIRCd: userrec class Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.3.3 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8 <h1>userrec Class Reference</h1>Holds all information about a user This class stores all information about a user connected to the irc server.  
9 <a href="#_details">More...</a>
10 <p>
11 <code>#include &lt;<a class="el" href="users_8h-source.html">users.h</a>&gt;</code>
12 <p>
13 Inherits <a class="el" href="classconnection.html">connection</a>.
14 <p>
15 <a href="classuserrec-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
16 <tr><td></td></tr>
17 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
18 <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a0">userrec</a> ()</td></tr>
19
20 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a1">~userrec</a> ()</td></tr>
21
22 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a2">GetFullHost</a> ()</td></tr>
23
24 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. </em> <a href="#a2"></a><em><br><br></td></tr>
25 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a3">GetFullRealHost</a> ()</td></tr>
26
27 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. </em> <a href="#a3"></a><em><br><br></td></tr>
28 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a4">IsInvited</a> (char *channel)</td></tr>
29
30 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if a user is invited to a channel. </em> <a href="#a4"></a><em><br><br></td></tr>
31 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a5">InviteTo</a> (char *channel)</td></tr>
32
33 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a channel to a users invite list (invites them to a channel). </em> <a href="#a5"></a><em><br><br></td></tr>
34 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a6">RemoveInvite</a> (char *channel)</td></tr>
35
36 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes a channel from a users invite list. </em> <a href="#a6"></a><em><br><br></td></tr>
37 <tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a7">HasPermission</a> (char *command)</td></tr>
38
39 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true or false for if a user can execute a privilaged oper command. </em> <a href="#a7"></a><em><br><br></td></tr>
40 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
41 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o0">nick</a> [NICKMAX]</td></tr>
42
43 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The users nickname. </em> <a href="#o0"></a><em><br><br></td></tr>
44 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o1">ident</a> [64]</td></tr>
45
46 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The users ident reply. </em> <a href="#o1"></a><em><br><br></td></tr>
47 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o2">dhost</a> [256]</td></tr>
48
49 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The host displayed to non-opers (used for cloaking etc). </em> <a href="#o2"></a><em><br><br></td></tr>
50 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o3">fullname</a> [128]</td></tr>
51
52 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The users full name. </em> <a href="#o3"></a><em><br><br></td></tr>
53 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o4">modes</a> [MAXBUF]</td></tr>
54
55 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The user's mode string. </em> <a href="#o4"></a><em><br><br></td></tr>
56 <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classucrec.html">ucrec</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o5">chans</a> [MAXCHANS]</td></tr>
57
58 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o6">server</a> [256]</td></tr>
59
60 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The server the user is connected to. </em> <a href="#o6"></a><em><br><br></td></tr>
61 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o7">awaymsg</a> [512]</td></tr>
62
63 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The user's away message. </em> <a href="#o7"></a><em><br><br></td></tr>
64 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o8">result</a> [256]</td></tr>
65
66 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stores the result of the last GetFullHost or GetRealHost call. </em> <a href="#o8"></a><em><br><br></td></tr>
67 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o9">flood</a></td></tr>
68
69 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood. </em> <a href="#o9"></a><em><br><br></td></tr>
70 <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned long&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o10">timeout</a></td></tr>
71
72 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected. </em> <a href="#o10"></a><em><br><br></td></tr>
73 <tr><td class="memItemLeft" nowrap align=right valign=top>char&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o11">oper</a> [NICKMAX]</td></tr>
74
75 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The oper type they logged in as, if they are an oper. </em> <a href="#o11"></a><em><br><br></td></tr>
76 <tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o12">dns_done</a></td></tr>
77
78 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True when <a class="el" href="classDNS.html">DNS</a> lookups are completed. </em> <a href="#o12"></a><em><br><br></td></tr>
79 <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned long&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o13">pingmax</a></td></tr>
80
81 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of seconds between PINGs for this user (set from &lt;connect:allow&gt; tag. </em> <a href="#o13"></a><em><br><br></td></tr>
82 <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
83 <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="users_8h.html#a6">InvitedList</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#r0">invites</a></td></tr>
84
85 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A list of channels the user has a pending invite to. </em> <a href="#r0"></a><em><br><br></td></tr>
86 </table>
87 <hr><a name="_details"></a><h2>Detailed Description</h2>
88 Holds all information about a user This class stores all information about a user connected to the irc server. 
89 <p>
90 Everything about a connection is stored here primarily, from the user's socket ID (file descriptor) through to the user's nickname and hostname. Use the Find method of the server class to locate a specific user by nickname. 
91 <p>
92
93 <p>
94 Definition at line <a class="el" href="users_8h-source.html#l00093">93</a> of file <a class="el" href="users_8h-source.html">users.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
95 <a name="a0" doxytag="userrec::userrec"></a><p>
96 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
97   <tr>
98     <td class="mdRow">
99       <table cellpadding="0" cellspacing="0" border="0">
100         <tr>
101           <td class="md" nowrap valign="top"> userrec::userrec </td>
102           <td class="md" valign="top">(&nbsp;</td>
103           <td class="mdname1" valign="top" nowrap>          </td>
104           <td class="md" valign="top">&nbsp;)&nbsp;</td>
105           <td class="md" nowrap></td>
106         </tr>
107
108       </table>
109     </td>
110   </tr>
111 </table>
112 <table cellspacing=5 cellpadding=0 border=0>
113   <tr>
114     <td>
115       &nbsp;
116     </td>
117     <td>
118
119 <p>
120
121 <p>
122 Definition at line <a class="el" href="users_8cpp-source.html#l00028">28</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
123 <p>
124 References <a class="el" href="users_8h-source.html#l00136">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00187">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00191">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00213">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00127">chans</a>, <a class="el" href="connection_8h-source.html#l00195">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00199">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00115">dhost</a>, <a class="el" href="users_8h-source.html#l00164">dns_done</a>, <a class="el" href="connection_8h-source.html#l00171">connection::fd</a>, <a class="el" href="users_8h-source.html#l00147">flood</a>, <a class="el" href="users_8h-source.html#l00119">fullname</a>, <a class="el" href="connection_8h-source.html#l00203">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00175">connection::host</a>, <a class="el" href="users_8h-source.html#l00110">ident</a>, <a class="el" href="connection_8h-source.html#l00229">connection::idle_lastmsg</a>, <a class="el" href="connection_8h-source.html#l00183">connection::inbuf</a>, <a class="el" href="users_8h-source.html#l00099">invites</a>, <a class="el" href="connection_8h-source.html#l00179">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00221">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00125">modes</a>, <a class="el" href="users_8h-source.html#l00106">nick</a>, <a class="el" href="connection_8h-source.html#l00233">connection::nping</a>, <a class="el" href="users_8h-source.html#l00160">oper</a>, <a class="el" href="connection_8h-source.html#l00209">connection::port</a>, <a class="el" href="connection_8h-source.html#l00213">connection::registered</a>, <a class="el" href="users_8h-source.html#l00141">result</a>, <a class="el" href="users_8h-source.html#l00131">server</a>, <a class="el" href="connection_8h-source.html#l00225">connection::signon</a>, <a class="el" href="users_8h-source.html#l00153">timeout</a>, and <a class="el" href="channels_8h-source.html#l00208">ucrec::uc_modes</a>.
125 <p>
126 <div class="fragment"><pre>00029 {
127 00030         <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span>
128 00031         strcpy(nick,<span class="stringliteral">""</span>);
129 00032         strcpy(ip,<span class="stringliteral">"127.0.0.1"</span>);
130 00033         <a class="code" href="classuserrec.html#o10">timeout</a> = 0;
131 00034         strcpy(ident,<span class="stringliteral">""</span>);
132 00035         strcpy(host,<span class="stringliteral">""</span>);
133 00036         strcpy(dhost,<span class="stringliteral">""</span>);
134 00037         strcpy(fullname,<span class="stringliteral">""</span>);
135 00038         strcpy(modes,<span class="stringliteral">""</span>);
136 00039         strcpy(inbuf,<span class="stringliteral">""</span>);
137 00040         strcpy(server,<span class="stringliteral">""</span>);
138 00041         strcpy(awaymsg,<span class="stringliteral">""</span>);
139 00042         strcpy(oper,<span class="stringliteral">""</span>);
140 00043         <a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="classconnection.html#o12">lastping</a> = <a class="code" href="classconnection.html#o13">signon</a> = <a class="code" href="classconnection.html#o14">idle_lastmsg</a> = <a class="code" href="classconnection.html#o15">nping</a> = <a class="code" href="classconnection.html#o10">registered</a> = 0;
141 00044         <a class="code" href="classuserrec.html#o9">flood</a> = <a class="code" href="classconnection.html#o9">port</a> = <a class="code" href="classconnection.html#o4">bytes_in</a> = <a class="code" href="classconnection.html#o5">bytes_out</a> = <a class="code" href="classconnection.html#o6">cmds_in</a> = <a class="code" href="classconnection.html#o7">cmds_out</a> = 0;
142 00045         <a class="code" href="classconnection.html#o8">haspassed</a> = <span class="keyword">false</span>;
143 00046         <a class="code" href="classuserrec.html#o12">dns_done</a> = <span class="keyword">false</span>;
144 00047         strcpy(result,<span class="stringliteral">""</span>);
145 00048         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; MAXCHANS; i++)
146 00049         {
147 00050                 this-&gt;<a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL;
148 00051                 this-&gt;<a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0;
149 00052         }
150 00053         <a class="code" href="classuserrec.html#r0">invites</a>.clear();
151 00054 }
152 </pre></div>    </td>
153   </tr>
154 </table>
155 <a name="a1" doxytag="userrec::~userrec"></a><p>
156 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
157   <tr>
158     <td class="mdRow">
159       <table cellpadding="0" cellspacing="0" border="0">
160         <tr>
161           <td class="md" nowrap valign="top"> virtual userrec::~<a class="el" href="classuserrec.html">userrec</a> </td>
162           <td class="md" valign="top">(&nbsp;</td>
163           <td class="mdname1" valign="top" nowrap>          </td>
164           <td class="md" valign="top">&nbsp;)&nbsp;</td>
165           <td class="md" nowrap><code> [inline, virtual]</code></td>
166         </tr>
167
168       </table>
169     </td>
170   </tr>
171 </table>
172 <table cellspacing=5 cellpadding=0 border=0>
173   <tr>
174     <td>
175       &nbsp;
176     </td>
177     <td>
178
179 <p>
180
181 <p>
182 Definition at line <a class="el" href="users_8h-source.html#l00172">172</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
183 <p>
184 <div class="fragment"><pre>00172 {  }
185 </pre></div>    </td>
186   </tr>
187 </table>
188 <hr><h2>Member Function Documentation</h2>
189 <a name="a2" doxytag="userrec::GetFullHost"></a><p>
190 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
191   <tr>
192     <td class="mdRow">
193       <table cellpadding="0" cellspacing="0" border="0">
194         <tr>
195           <td class="md" nowrap valign="top"> char * userrec::GetFullHost </td>
196           <td class="md" valign="top">(&nbsp;</td>
197           <td class="mdname1" valign="top" nowrap>          </td>
198           <td class="md" valign="top">&nbsp;)&nbsp;</td>
199           <td class="md" nowrap><code> [virtual]</code></td>
200         </tr>
201
202       </table>
203     </td>
204   </tr>
205 </table>
206 <table cellspacing=5 cellpadding=0 border=0>
207   <tr>
208     <td>
209       &nbsp;
210     </td>
211     <td>
212
213 <p>
214 Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. 
215 <p>
216
217 <p>
218 Definition at line <a class="el" href="users_8cpp-source.html#l00058">58</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
219 <p>
220 References <a class="el" href="users_8h-source.html#l00115">dhost</a>, <a class="el" href="users_8h-source.html#l00110">ident</a>, <a class="el" href="users_8h-source.html#l00106">nick</a>, and <a class="el" href="users_8h-source.html#l00141">result</a>.
221 <p>
222 <div class="fragment"><pre>00059 {
223 00060         snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost);
224 00061         <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>;
225 00062 }
226 </pre></div>    </td>
227   </tr>
228 </table>
229 <a name="a3" doxytag="userrec::GetFullRealHost"></a><p>
230 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
231   <tr>
232     <td class="mdRow">
233       <table cellpadding="0" cellspacing="0" border="0">
234         <tr>
235           <td class="md" nowrap valign="top"> char * userrec::GetFullRealHost </td>
236           <td class="md" valign="top">(&nbsp;</td>
237           <td class="mdname1" valign="top" nowrap>          </td>
238           <td class="md" valign="top">&nbsp;)&nbsp;</td>
239           <td class="md" nowrap><code> [virtual]</code></td>
240         </tr>
241
242       </table>
243     </td>
244   </tr>
245 </table>
246 <table cellspacing=5 cellpadding=0 border=0>
247   <tr>
248     <td>
249       &nbsp;
250     </td>
251     <td>
252
253 <p>
254 Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. 
255 <p>
256 If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.
257 <p>
258 Definition at line <a class="el" href="users_8cpp-source.html#l00065">65</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
259 <p>
260 References <a class="el" href="connection_8h-source.html#l00175">connection::host</a>, <a class="el" href="users_8h-source.html#l00110">ident</a>, <a class="el" href="users_8h-source.html#l00106">nick</a>, and <a class="el" href="users_8h-source.html#l00141">result</a>.
261 <p>
262 <div class="fragment"><pre>00066 {
263 00067         snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host);
264 00068         <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>;
265 00069 }
266 </pre></div>    </td>
267   </tr>
268 </table>
269 <a name="a7" doxytag="userrec::HasPermission"></a><p>
270 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
271   <tr>
272     <td class="mdRow">
273       <table cellpadding="0" cellspacing="0" border="0">
274         <tr>
275           <td class="md" nowrap valign="top"> bool userrec::HasPermission </td>
276           <td class="md" valign="top">(&nbsp;</td>
277           <td class="md" nowrap valign="top">char *&nbsp;</td>
278           <td class="mdname1" valign="top" nowrap> <em>command</em>          </td>
279           <td class="md" valign="top">&nbsp;)&nbsp;</td>
280           <td class="md" nowrap></td>
281         </tr>
282
283       </table>
284     </td>
285   </tr>
286 </table>
287 <table cellspacing=5 cellpadding=0 border=0>
288   <tr>
289     <td>
290       &nbsp;
291     </td>
292     <td>
293
294 <p>
295 Returns true or false for if a user can execute a privilaged oper command. 
296 <p>
297 This is done by looking up their oper type from <a class="el" href="classuserrec.html#o11">userrec::oper</a>, then referencing this to their oper classes and checking the commands they can execute.
298 <p>
299 Definition at line <a class="el" href="users_8cpp-source.html#l00114">114</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
300 <p>
301 References <a class="el" href="channels_8cpp-source.html#l00101">config_f</a>, and <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>.
302 <p>
303 <div class="fragment"><pre>00115 {
304 00116         <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
305 00117         <span class="keywordtype">char</span>* myclass;
306 00118         <span class="keywordtype">char</span>* mycmd;
307 00119         <span class="keywordtype">char</span>* savept;
308 00120         <span class="keywordtype">char</span>* savept2;
309 00121         
310 00122         <span class="comment">// are they even an oper at all?</span>
311 00123         <span class="keywordflow">if</span> (strchr(this-&gt;modes,<span class="charliteral">'o'</span>))
312 00124         {
313 00125                 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this-&gt;nick);
314 00126                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j &lt; ConfValueEnum(<span class="stringliteral">"type"</span>,&amp;config_f); j++)
315 00127                 {
316 00128                         ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&amp;config_f);
317 00129                         <span class="keywordflow">if</span> (!strcmp(TypeName,this-&gt;oper))
318 00130                         {
319 00131                                 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this-&gt;nick,this-&gt;oper);
320 00132                                 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&amp;config_f);
321 00133                                 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&amp;savept);
322 00134                                 <span class="keywordflow">while</span> (myclass)
323 00135                                 {
324 00136                                         log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass);
325 00137                                         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k &lt; ConfValueEnum(<span class="stringliteral">"class"</span>,&amp;config_f); k++)
326 00138                                         {
327 00139                                                 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&amp;config_f);
328 00140                                                 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass))
329 00141                                                 {
330 00142                                                         ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&amp;config_f);
331 00143                                                         log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList);
332 00144                                                         
333 00145                                                         
334 00146                                                         mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&amp;savept2);
335 00147                                                         <span class="keywordflow">while</span> (mycmd)
336 00148                                                         {
337 00149                                                                 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command))
338 00150                                                                 {
339 00151                                                                         log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command);
340 00152                                                                         <span class="keywordflow">return</span> <span class="keyword">true</span>;
341 00153                                                                 }
342 00154                                                                 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&amp;savept2);
343 00155                                                         }
344 00156                                                 }
345 00157                                         }
346 00158                                         myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&amp;savept);
347 00159                                 }
348 00160                         }
349 00161                 }
350 00162         }
351 00163         <span class="keywordflow">return</span> <span class="keyword">false</span>;
352 00164 }
353 </pre></div>    </td>
354   </tr>
355 </table>
356 <a name="a5" doxytag="userrec::InviteTo"></a><p>
357 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
358   <tr>
359     <td class="mdRow">
360       <table cellpadding="0" cellspacing="0" border="0">
361         <tr>
362           <td class="md" nowrap valign="top"> void userrec::InviteTo </td>
363           <td class="md" valign="top">(&nbsp;</td>
364           <td class="md" nowrap valign="top">char *&nbsp;</td>
365           <td class="mdname1" valign="top" nowrap> <em>channel</em>          </td>
366           <td class="md" valign="top">&nbsp;)&nbsp;</td>
367           <td class="md" nowrap><code> [virtual]</code></td>
368         </tr>
369
370       </table>
371     </td>
372   </tr>
373 </table>
374 <table cellspacing=5 cellpadding=0 border=0>
375   <tr>
376     <td>
377       &nbsp;
378     </td>
379     <td>
380
381 <p>
382 Adds a channel to a users invite list (invites them to a channel). 
383 <p>
384
385 <p>
386 Definition at line <a class="el" href="users_8cpp-source.html#l00085">85</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
387 <p>
388 References <a class="el" href="users_8h-source.html#l00039">Invited::channel</a>, and <a class="el" href="users_8h-source.html#l00099">invites</a>.
389 <p>
390 <div class="fragment"><pre>00086 {
391 00087         <a class="code" href="classInvited.html">Invited</a> i;
392 00088         strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX);
393 00089         <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i);
394 00090 }
395 </pre></div>    </td>
396   </tr>
397 </table>
398 <a name="a4" doxytag="userrec::IsInvited"></a><p>
399 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
400   <tr>
401     <td class="mdRow">
402       <table cellpadding="0" cellspacing="0" border="0">
403         <tr>
404           <td class="md" nowrap valign="top"> bool userrec::IsInvited </td>
405           <td class="md" valign="top">(&nbsp;</td>
406           <td class="md" nowrap valign="top">char *&nbsp;</td>
407           <td class="mdname1" valign="top" nowrap> <em>channel</em>          </td>
408           <td class="md" valign="top">&nbsp;)&nbsp;</td>
409           <td class="md" nowrap><code> [virtual]</code></td>
410         </tr>
411
412       </table>
413     </td>
414   </tr>
415 </table>
416 <table cellspacing=5 cellpadding=0 border=0>
417   <tr>
418     <td>
419       &nbsp;
420     </td>
421     <td>
422
423 <p>
424 Returns true if a user is invited to a channel. 
425 <p>
426
427 <p>
428 Definition at line <a class="el" href="users_8cpp-source.html#l00071">71</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
429 <p>
430 References <a class="el" href="users_8h-source.html#l00099">invites</a>.
431 <p>
432 <div class="fragment"><pre>00072 {
433 00073         <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++)
434 00074         {
435 00075                 <span class="keywordflow">if</span> (i-&gt;channel) {
436 00076                         <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
437 00077                         {
438 00078                                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
439 00079                         }
440 00080                 }
441 00081         }
442 00082         <span class="keywordflow">return</span> <span class="keyword">false</span>;
443 00083 }
444 </pre></div>    </td>
445   </tr>
446 </table>
447 <a name="a6" doxytag="userrec::RemoveInvite"></a><p>
448 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
449   <tr>
450     <td class="mdRow">
451       <table cellpadding="0" cellspacing="0" border="0">
452         <tr>
453           <td class="md" nowrap valign="top"> void userrec::RemoveInvite </td>
454           <td class="md" valign="top">(&nbsp;</td>
455           <td class="md" nowrap valign="top">char *&nbsp;</td>
456           <td class="mdname1" valign="top" nowrap> <em>channel</em>          </td>
457           <td class="md" valign="top">&nbsp;)&nbsp;</td>
458           <td class="md" nowrap><code> [virtual]</code></td>
459         </tr>
460
461       </table>
462     </td>
463   </tr>
464 </table>
465 <table cellspacing=5 cellpadding=0 border=0>
466   <tr>
467     <td>
468       &nbsp;
469     </td>
470     <td>
471
472 <p>
473 Removes a channel from a users invite list. 
474 <p>
475 This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.
476 <p>
477 Definition at line <a class="el" href="users_8cpp-source.html#l00092">92</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
478 <p>
479 References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00099">invites</a>.
480 <p>
481 <div class="fragment"><pre>00093 {
482 00094         log(DEBUG,<span class="stringliteral">"Removing invites"</span>);
483 00095         <span class="keywordflow">if</span> (channel)
484 00096         {
485 00097                 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size())
486 00098                 {
487 00099                         <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++)
488 00100                         {
489 00101                                 <span class="keywordflow">if</span> (i-&gt;channel)
490 00102                                 {
491 00103                                         <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
492 00104                                         {
493 00105                                                 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i);
494 00106                                                 <span class="keywordflow">return</span>;
495 00107                                         }
496 00108                                 }
497 00109                         }
498 00110                 }
499 00111         }
500 00112 }
501 </pre></div>    </td>
502   </tr>
503 </table>
504 <hr><h2>Member Data Documentation</h2>
505 <a name="o7" doxytag="userrec::awaymsg"></a><p>
506 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
507   <tr>
508     <td class="mdRow">
509       <table cellpadding="0" cellspacing="0" border="0">
510         <tr>
511           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o7">userrec::awaymsg</a>[512]
512       </table>
513     </td>
514   </tr>
515 </table>
516 <table cellspacing=5 cellpadding=0 border=0>
517   <tr>
518     <td>
519       &nbsp;
520     </td>
521     <td>
522
523 <p>
524 The user's away message. 
525 <p>
526 If this string is empty, the user is not marked as away.
527 <p>
528 Definition at line <a class="el" href="users_8h-source.html#l00136">136</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
529 <p>
530 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
531   </tr>
532 </table>
533 <a name="o5" doxytag="userrec::chans"></a><p>
534 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
535   <tr>
536     <td class="mdRow">
537       <table cellpadding="0" cellspacing="0" border="0">
538         <tr>
539           <td class="md" nowrap valign="top"> <a class="el" href="classucrec.html">ucrec</a> <a class="el" href="classuserrec.html#o5">userrec::chans</a>[MAXCHANS]
540       </table>
541     </td>
542   </tr>
543 </table>
544 <table cellspacing=5 cellpadding=0 border=0>
545   <tr>
546     <td>
547       &nbsp;
548     </td>
549     <td>
550
551 <p>
552
553 <p>
554 Definition at line <a class="el" href="users_8h-source.html#l00127">127</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
555 <p>
556 Referenced by <a class="el" href="modules_8cpp-source.html#l00594">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
557   </tr>
558 </table>
559 <a name="o2" doxytag="userrec::dhost"></a><p>
560 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
561   <tr>
562     <td class="mdRow">
563       <table cellpadding="0" cellspacing="0" border="0">
564         <tr>
565           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o2">userrec::dhost</a>[256]
566       </table>
567     </td>
568   </tr>
569 </table>
570 <table cellspacing=5 cellpadding=0 border=0>
571   <tr>
572     <td>
573       &nbsp;
574     </td>
575     <td>
576
577 <p>
578 The host displayed to non-opers (used for cloaking etc). 
579 <p>
580 This usually matches the value of <a class="el" href="classconnection.html#o1">userrec::host</a>.
581 <p>
582 Definition at line <a class="el" href="users_8h-source.html#l00115">115</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
583 <p>
584 Referenced by <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
585   </tr>
586 </table>
587 <a name="o12" doxytag="userrec::dns_done"></a><p>
588 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
589   <tr>
590     <td class="mdRow">
591       <table cellpadding="0" cellspacing="0" border="0">
592         <tr>
593           <td class="md" nowrap valign="top"> bool <a class="el" href="classuserrec.html#o12">userrec::dns_done</a>
594       </table>
595     </td>
596   </tr>
597 </table>
598 <table cellspacing=5 cellpadding=0 border=0>
599   <tr>
600     <td>
601       &nbsp;
602     </td>
603     <td>
604
605 <p>
606 True when <a class="el" href="classDNS.html">DNS</a> lookups are completed. 
607 <p>
608
609 <p>
610 Definition at line <a class="el" href="users_8h-source.html#l00164">164</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
611 <p>
612 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
613   </tr>
614 </table>
615 <a name="o9" doxytag="userrec::flood"></a><p>
616 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
617   <tr>
618     <td class="mdRow">
619       <table cellpadding="0" cellspacing="0" border="0">
620         <tr>
621           <td class="md" nowrap valign="top"> int <a class="el" href="classuserrec.html#o9">userrec::flood</a>
622       </table>
623     </td>
624   </tr>
625 </table>
626 <table cellspacing=5 cellpadding=0 border=0>
627   <tr>
628     <td>
629       &nbsp;
630     </td>
631     <td>
632
633 <p>
634 Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood. 
635 <p>
636
637 <p>
638 Definition at line <a class="el" href="users_8h-source.html#l00147">147</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
639 <p>
640 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
641   </tr>
642 </table>
643 <a name="o3" doxytag="userrec::fullname"></a><p>
644 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
645   <tr>
646     <td class="mdRow">
647       <table cellpadding="0" cellspacing="0" border="0">
648         <tr>
649           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o3">userrec::fullname</a>[128]
650       </table>
651     </td>
652   </tr>
653 </table>
654 <table cellspacing=5 cellpadding=0 border=0>
655   <tr>
656     <td>
657       &nbsp;
658     </td>
659     <td>
660
661 <p>
662 The users full name. 
663 <p>
664
665 <p>
666 Definition at line <a class="el" href="users_8h-source.html#l00119">119</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
667 <p>
668 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
669   </tr>
670 </table>
671 <a name="o1" doxytag="userrec::ident"></a><p>
672 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
673   <tr>
674     <td class="mdRow">
675       <table cellpadding="0" cellspacing="0" border="0">
676         <tr>
677           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o1">userrec::ident</a>[64]
678       </table>
679     </td>
680   </tr>
681 </table>
682 <table cellspacing=5 cellpadding=0 border=0>
683   <tr>
684     <td>
685       &nbsp;
686     </td>
687     <td>
688
689 <p>
690 The users ident reply. 
691 <p>
692
693 <p>
694 Definition at line <a class="el" href="users_8h-source.html#l00110">110</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
695 <p>
696 Referenced by <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00594">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00585">Server::UserToPseudo()</a>.    </td>
697   </tr>
698 </table>
699 <a name="r0" doxytag="userrec::invites"></a><p>
700 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
701   <tr>
702     <td class="mdRow">
703       <table cellpadding="0" cellspacing="0" border="0">
704         <tr>
705           <td class="md" nowrap valign="top"> <a class="el" href="users_8h.html#a6">InvitedList</a> <a class="el" href="classuserrec.html#r0">userrec::invites</a><code> [private]</code>
706       </table>
707     </td>
708   </tr>
709 </table>
710 <table cellspacing=5 cellpadding=0 border=0>
711   <tr>
712     <td>
713       &nbsp;
714     </td>
715     <td>
716
717 <p>
718 A list of channels the user has a pending invite to. 
719 <p>
720
721 <p>
722 Definition at line <a class="el" href="users_8h-source.html#l00099">99</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
723 <p>
724 Referenced by <a class="el" href="users_8cpp-source.html#l00085">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00071">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00092">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
725   </tr>
726 </table>
727 <a name="o4" doxytag="userrec::modes"></a><p>
728 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
729   <tr>
730     <td class="mdRow">
731       <table cellpadding="0" cellspacing="0" border="0">
732         <tr>
733           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o4">userrec::modes</a>[MAXBUF]
734       </table>
735     </td>
736   </tr>
737 </table>
738 <table cellspacing=5 cellpadding=0 border=0>
739   <tr>
740     <td>
741       &nbsp;
742     </td>
743     <td>
744
745 <p>
746 The user's mode string. 
747 <p>
748 This may contain any of the following RFC characters: o, w, s, i Your module may define other mode characters as it sees fit.
749 <p>
750 Definition at line <a class="el" href="users_8h-source.html#l00125">125</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
751 <p>
752 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
753   </tr>
754 </table>
755 <a name="o0" doxytag="userrec::nick"></a><p>
756 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
757   <tr>
758     <td class="mdRow">
759       <table cellpadding="0" cellspacing="0" border="0">
760         <tr>
761           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o0">userrec::nick</a>[NICKMAX]
762       </table>
763     </td>
764   </tr>
765 </table>
766 <table cellspacing=5 cellpadding=0 border=0>
767   <tr>
768     <td>
769       &nbsp;
770     </td>
771     <td>
772
773 <p>
774 The users nickname. 
775 <p>
776 An invalid nickname indicates an unregistered connection prior to the NICK command.
777 <p>
778 Definition at line <a class="el" href="users_8h-source.html#l00106">106</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
779 <p>
780 Referenced by <a class="el" href="modules_8cpp-source.html#l00805">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00594">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00405">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
781   </tr>
782 </table>
783 <a name="o11" doxytag="userrec::oper"></a><p>
784 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
785   <tr>
786     <td class="mdRow">
787       <table cellpadding="0" cellspacing="0" border="0">
788         <tr>
789           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o11">userrec::oper</a>[NICKMAX]
790       </table>
791     </td>
792   </tr>
793 </table>
794 <table cellspacing=5 cellpadding=0 border=0>
795   <tr>
796     <td>
797       &nbsp;
798     </td>
799     <td>
800
801 <p>
802 The oper type they logged in as, if they are an oper. 
803 <p>
804 This is used to check permissions in operclasses, so that we can say 'yay' or 'nay' to any commands they issue. The value of this is the value of a valid 'type name=' tag.
805 <p>
806 Definition at line <a class="el" href="users_8h-source.html#l00160">160</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
807 <p>
808 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
809   </tr>
810 </table>
811 <a name="o13" doxytag="userrec::pingmax"></a><p>
812 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
813   <tr>
814     <td class="mdRow">
815       <table cellpadding="0" cellspacing="0" border="0">
816         <tr>
817           <td class="md" nowrap valign="top"> unsigned long <a class="el" href="classuserrec.html#o13">userrec::pingmax</a>
818       </table>
819     </td>
820   </tr>
821 </table>
822 <table cellspacing=5 cellpadding=0 border=0>
823   <tr>
824     <td>
825       &nbsp;
826     </td>
827     <td>
828
829 <p>
830 Number of seconds between PINGs for this user (set from &lt;connect:allow&gt; tag. 
831 <p>
832
833 <p>
834 Definition at line <a class="el" href="users_8h-source.html#l00168">168</a> of file <a class="el" href="users_8h-source.html">users.h</a>.    </td>
835   </tr>
836 </table>
837 <a name="o8" doxytag="userrec::result"></a><p>
838 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
839   <tr>
840     <td class="mdRow">
841       <table cellpadding="0" cellspacing="0" border="0">
842         <tr>
843           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o8">userrec::result</a>[256]
844       </table>
845     </td>
846   </tr>
847 </table>
848 <table cellspacing=5 cellpadding=0 border=0>
849   <tr>
850     <td>
851       &nbsp;
852     </td>
853     <td>
854
855 <p>
856 Stores the result of the last GetFullHost or GetRealHost call. 
857 <p>
858 You may use this to increase the speed of use of this class.
859 <p>
860 Definition at line <a class="el" href="users_8h-source.html#l00141">141</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
861 <p>
862 Referenced by <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
863   </tr>
864 </table>
865 <a name="o6" doxytag="userrec::server"></a><p>
866 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
867   <tr>
868     <td class="mdRow">
869       <table cellpadding="0" cellspacing="0" border="0">
870         <tr>
871           <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o6">userrec::server</a>[256]
872       </table>
873     </td>
874   </tr>
875 </table>
876 <table cellspacing=5 cellpadding=0 border=0>
877   <tr>
878     <td>
879       &nbsp;
880     </td>
881     <td>
882
883 <p>
884 The server the user is connected to. 
885 <p>
886
887 <p>
888 Definition at line <a class="el" href="users_8h-source.html#l00131">131</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
889 <p>
890 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
891   </tr>
892 </table>
893 <a name="o10" doxytag="userrec::timeout"></a><p>
894 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
895   <tr>
896     <td class="mdRow">
897       <table cellpadding="0" cellspacing="0" border="0">
898         <tr>
899           <td class="md" nowrap valign="top"> unsigned long <a class="el" href="classuserrec.html#o10">userrec::timeout</a>
900       </table>
901     </td>
902   </tr>
903 </table>
904 <table cellspacing=5 cellpadding=0 border=0>
905   <tr>
906     <td>
907       &nbsp;
908     </td>
909     <td>
910
911 <p>
912 Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected. 
913 <p>
914
915 <p>
916 Definition at line <a class="el" href="users_8h-source.html#l00153">153</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
917 <p>
918 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.    </td>
919   </tr>
920 </table>
921 <hr>The documentation for this class was generated from the following files:<ul>
922 <li><a class="el" href="users_8h-source.html">users.h</a><li><a class="el" href="users_8cpp-source.html">users.cpp</a></ul>
923 <hr size="1"><address style="align: right;"><small>Generated on Fri Apr 15 14:50:52 2005 for InspIRCd by
924 <a href="http://www.doxygen.org/index.html">
925 <img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
926 </a>1.3.3 </small></address>
927 </body>
928 </html>