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