summaryrefslogtreecommitdiff
path: root/docs/module-doc/classuserrec.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/module-doc/classuserrec.html')
-rw-r--r--docs/module-doc/classuserrec.html582
1 files changed, 312 insertions, 270 deletions
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html
index 8e875c5b3..74ebbc256 100644
--- a/docs/module-doc/classuserrec.html
+++ b/docs/module-doc/classuserrec.html
@@ -4,7 +4,7 @@
<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.3 -->
-<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>
+<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="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>userrec Class Reference</h1>Holds all information about a user This class stores all information about a user connected to the irc server.
<a href="#_details">More...</a>
<p>
@@ -70,6 +70,9 @@ Inheritance diagram for userrec:<p><center><img src="classuserrec__inherit__grap
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a15">FlushWriteBuf</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flushes as much of the user's buffer to the file descriptor as possible. </em> <a href="#a15"></a><em><br><br></td></tr>
+<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#a16">GetInviteList</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the list of channels this user has been invited to but has not yet joined. </em> <a href="#a16"></a><em><br><br></td></tr>
<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
<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>
@@ -176,39 +179,39 @@ Definition at line <a class="el" href="users_8h-source.html#l00108">108</a> of f
<p>
<p>
-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>.
-<p>
-References <a class="el" href="users_8h-source.html#l00151">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00227">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00231">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00233">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00142">chans</a>, <a class="el" href="connection_8h-source.html#l00235">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00239">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00130">dhost</a>, <a class="el" href="users_8h-source.html#l00179">dns_done</a>, <a class="el" href="connection_8h-source.html#l00215">connection::fd</a>, <a class="el" href="users_8h-source.html#l00162">flood</a>, <a class="el" href="users_8h-source.html#l00134">fullname</a>, <a class="el" href="connection_8h-source.html#l00243">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00219">connection::host</a>, <a class="el" href="users_8h-source.html#l00125">ident</a>, <a class="el" href="connection_8h-source.html#l00265">connection::idle_lastmsg</a>, <a class="el" href="users_8h-source.html#l00114">invites</a>, <a class="el" href="connection_8h-source.html#l00223">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00257">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00204">lines_in</a>, <a class="el" href="users_8h-source.html#l00140">modes</a>, <a class="el" href="users_8h-source.html#l00121">nick</a>, <a class="el" href="connection_8h-source.html#l00269">connection::nping</a>, <a class="el" href="users_8h-source.html#l00175">oper</a>, <a class="el" href="connection_8h-source.html#l00249">connection::port</a>, <a class="el" href="users_8h-source.html#l00195">recvq</a>, <a class="el" href="connection_8h-source.html#l00253">connection::registered</a>, <a class="el" href="users_8h-source.html#l00205">reset_due</a>, <a class="el" href="users_8h-source.html#l00156">result</a>, <a class="el" href="users_8h-source.html#l00200">sendq</a>, <a class="el" href="users_8h-source.html#l00146">server</a>, <a class="el" href="connection_8h-source.html#l00261">connection::signon</a>, <a class="el" href="channels_8cpp-source.html#l00107">TIME</a>, <a class="el" href="users_8h-source.html#l00168">timeout</a>, and <a class="el" href="channels_8h-source.html#l00228">ucrec::uc_modes</a>.
-<p>
-<div class="fragment"><pre>00029 {
-00030 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span>
-00031 strcpy(nick,<span class="stringliteral">""</span>);
-00032 strcpy(ip,<span class="stringliteral">"127.0.0.1"</span>);
-00033 <a class="code" href="classuserrec.html#o10">timeout</a> = 0;
-00034 strcpy(ident,<span class="stringliteral">""</span>);
-00035 strcpy(host,<span class="stringliteral">""</span>);
-00036 strcpy(dhost,<span class="stringliteral">""</span>);
-00037 strcpy(fullname,<span class="stringliteral">""</span>);
-00038 strcpy(modes,<span class="stringliteral">""</span>);
-00039 strcpy(server,<span class="stringliteral">""</span>);
-00040 strcpy(awaymsg,<span class="stringliteral">""</span>);
-00041 strcpy(oper,<span class="stringliteral">""</span>);
-00042 <a class="code" href="classuserrec.html#o18">reset_due</a> = <a class="code" href="channels_8cpp.html#a37">TIME</a>;
-00043 <a class="code" href="classuserrec.html#o17">lines_in</a> = 0;
-00044 <a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="classconnection.html#o10">lastping</a> = <a class="code" href="classconnection.html#o11">signon</a> = <a class="code" href="classconnection.html#o12">idle_lastmsg</a> = <a class="code" href="classconnection.html#o13">nping</a> = <a class="code" href="classconnection.html#o9">registered</a> = 0;
-00045 <a class="code" href="classuserrec.html#o9">flood</a> = <a class="code" href="classconnection.html#o8">port</a> = <a class="code" href="classconnection.html#o3">bytes_in</a> = <a class="code" href="classconnection.html#o4">bytes_out</a> = <a class="code" href="classconnection.html#o5">cmds_in</a> = <a class="code" href="classconnection.html#o6">cmds_out</a> = 0;
-00046 <a class="code" href="classconnection.html#o7">haspassed</a> = <span class="keyword">false</span>;
-00047 <a class="code" href="classuserrec.html#o12">dns_done</a> = <span class="keyword">false</span>;
-00048 <a class="code" href="classuserrec.html#o15">recvq</a> = <span class="stringliteral">""</span>;
-00049 <a class="code" href="classuserrec.html#o16">sendq</a> = <span class="stringliteral">""</span>;
-00050 strcpy(result,<span class="stringliteral">""</span>);
-00051 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; MAXCHANS; i++)
-00052 {
-00053 this-&gt;<a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL;
-00054 this-&gt;<a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0;
-00055 }
-00056 <a class="code" href="classuserrec.html#r0">invites</a>.clear();
-00057 }
+Definition at line <a class="el" href="users_8cpp-source.html#l00029">29</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+<p>
+References <a class="el" href="users_8h-source.html#l00151">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00229">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00233">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00233">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00142">chans</a>, <a class="el" href="connection_8h-source.html#l00237">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00241">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00130">dhost</a>, <a class="el" href="users_8h-source.html#l00179">dns_done</a>, <a class="el" href="connection_8h-source.html#l00217">connection::fd</a>, <a class="el" href="users_8h-source.html#l00162">flood</a>, <a class="el" href="users_8h-source.html#l00134">fullname</a>, <a class="el" href="connection_8h-source.html#l00245">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00221">connection::host</a>, <a class="el" href="users_8h-source.html#l00125">ident</a>, <a class="el" href="connection_8h-source.html#l00267">connection::idle_lastmsg</a>, <a class="el" href="users_8h-source.html#l00114">invites</a>, <a class="el" href="connection_8h-source.html#l00225">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00259">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00204">lines_in</a>, <a class="el" href="users_8h-source.html#l00140">modes</a>, <a class="el" href="users_8h-source.html#l00121">nick</a>, <a class="el" href="connection_8h-source.html#l00271">connection::nping</a>, <a class="el" href="users_8h-source.html#l00175">oper</a>, <a class="el" href="connection_8h-source.html#l00251">connection::port</a>, <a class="el" href="users_8h-source.html#l00195">recvq</a>, <a class="el" href="connection_8h-source.html#l00255">connection::registered</a>, <a class="el" href="users_8h-source.html#l00205">reset_due</a>, <a class="el" href="users_8h-source.html#l00156">result</a>, <a class="el" href="users_8h-source.html#l00200">sendq</a>, <a class="el" href="users_8h-source.html#l00146">server</a>, <a class="el" href="connection_8h-source.html#l00263">connection::signon</a>, <a class="el" href="channels_8cpp-source.html#l00102">TIME</a>, <a class="el" href="users_8h-source.html#l00168">timeout</a>, and <a class="el" href="channels_8h-source.html#l00228">ucrec::uc_modes</a>.
+<p>
+<div class="fragment"><pre>00030 {
+00031 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span>
+00032 strcpy(nick,<span class="stringliteral">""</span>);
+00033 strcpy(ip,<span class="stringliteral">"127.0.0.1"</span>);
+00034 <a class="code" href="classuserrec.html#o10">timeout</a> = 0;
+00035 strcpy(ident,<span class="stringliteral">""</span>);
+00036 strcpy(host,<span class="stringliteral">""</span>);
+00037 strcpy(dhost,<span class="stringliteral">""</span>);
+00038 strcpy(fullname,<span class="stringliteral">""</span>);
+00039 strcpy(modes,<span class="stringliteral">""</span>);
+00040 strcpy(server,<span class="stringliteral">""</span>);
+00041 strcpy(awaymsg,<span class="stringliteral">""</span>);
+00042 strcpy(oper,<span class="stringliteral">""</span>);
+00043 <a class="code" href="classuserrec.html#o18">reset_due</a> = <a class="code" href="channels_8cpp.html#a37">TIME</a>;
+00044 <a class="code" href="classuserrec.html#o17">lines_in</a> = 0;
+00045 <a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="classconnection.html#o10">lastping</a> = <a class="code" href="classconnection.html#o11">signon</a> = <a class="code" href="classconnection.html#o12">idle_lastmsg</a> = <a class="code" href="classconnection.html#o13">nping</a> = <a class="code" href="classconnection.html#o9">registered</a> = 0;
+00046 <a class="code" href="classuserrec.html#o9">flood</a> = <a class="code" href="classconnection.html#o8">port</a> = <a class="code" href="classconnection.html#o3">bytes_in</a> = <a class="code" href="classconnection.html#o4">bytes_out</a> = <a class="code" href="classconnection.html#o5">cmds_in</a> = <a class="code" href="classconnection.html#o6">cmds_out</a> = 0;
+00047 <a class="code" href="classconnection.html#o7">haspassed</a> = <span class="keyword">false</span>;
+00048 <a class="code" href="classuserrec.html#o12">dns_done</a> = <span class="keyword">false</span>;
+00049 <a class="code" href="classuserrec.html#o15">recvq</a> = <span class="stringliteral">""</span>;
+00050 <a class="code" href="classuserrec.html#o16">sendq</a> = <span class="stringliteral">""</span>;
+00051 strcpy(result,<span class="stringliteral">""</span>);
+00052 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; MAXCHANS; i++)
+00053 {
+00054 this-&gt;<a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL;
+00055 this-&gt;<a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0;
+00056 }
+00057 <a class="code" href="classuserrec.html#r0">invites</a>.clear();
+00058 }
</pre></div> </td>
</tr>
</table>
@@ -276,34 +279,34 @@ This method adds data to the buffer of the user.
<p>
The buffer can grow to any size within limits of the available memory, managed by the size of a std::string, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00169">169</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
-<p>
-References <a class="el" href="users_8h-source.html#l00195">recvq</a>, <a class="el" href="users_8h-source.html#l00218">recvqmax</a>, and <a class="el" href="users_8cpp-source.html#l00263">SetWriteError()</a>.
-<p>
-<div class="fragment"><pre>00170 {
-00171 std::string b = <span class="stringliteral">""</span>;
-00172 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; a.length(); i++)
-00173 <span class="keywordflow">if</span> ((a[i] != <span class="charliteral">'\r'</span>) &amp;&amp; (a[i] != <span class="charliteral">'\0'</span>) &amp;&amp; (a[i] != 7))
-00174 b = b + a[i];
-00175 std::stringstream stream(recvq);
-00176 stream &lt;&lt; b;
-00177 <a class="code" href="classuserrec.html#o15">recvq</a> = stream.str();
-00178 <span class="keywordtype">int</span> i = 0;
-00179 <span class="comment">// count the size of the first line in the buffer.</span>
-00180 <span class="keywordflow">while</span> (i &lt; <a class="code" href="classuserrec.html#o15">recvq</a>.length())
-00181 {
-00182 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a>[i++] == <span class="charliteral">'\n'</span>)
-00183 <span class="keywordflow">break</span>;
-00184 }
-00185 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a>.length() &gt; this-&gt;<a class="code" href="classuserrec.html#o22">recvqmax</a>)
-00186 {
-00187 this-&gt;<a class="code" href="classuserrec.html#a12">SetWriteError</a>(<span class="stringliteral">"RecvQ exceeded"</span>);
-00188 WriteOpers(<span class="stringliteral">"*** User %s RecvQ of %d exceeds connect class maximum of %d"</span>,this-&gt;nick,<a class="code" href="classuserrec.html#o15">recvq</a>.length(),this-&gt;<a class="code" href="classuserrec.html#o22">recvqmax</a>);
-00189 }
-00190 <span class="comment">// return false if we've had more than 600 characters WITHOUT</span>
-00191 <span class="comment">// a carriage return (this is BAD, drop the socket)</span>
-00192 <span class="keywordflow">return</span> (i &lt; 600);
-00193 }
+Definition at line <a class="el" href="users_8cpp-source.html#l00175">175</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+<p>
+References <a class="el" href="users_8h-source.html#l00195">recvq</a>, <a class="el" href="users_8h-source.html#l00218">recvqmax</a>, and <a class="el" href="users_8cpp-source.html#l00269">SetWriteError()</a>.
+<p>
+<div class="fragment"><pre>00176 {
+00177 std::string b = <span class="stringliteral">""</span>;
+00178 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; a.length(); i++)
+00179 <span class="keywordflow">if</span> ((a[i] != <span class="charliteral">'\r'</span>) &amp;&amp; (a[i] != <span class="charliteral">'\0'</span>) &amp;&amp; (a[i] != 7))
+00180 b = b + a[i];
+00181 std::stringstream stream(recvq);
+00182 stream &lt;&lt; b;
+00183 <a class="code" href="classuserrec.html#o15">recvq</a> = stream.str();
+00184 <span class="keywordtype">int</span> i = 0;
+00185 <span class="comment">// count the size of the first line in the buffer.</span>
+00186 <span class="keywordflow">while</span> (i &lt; <a class="code" href="classuserrec.html#o15">recvq</a>.length())
+00187 {
+00188 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a>[i++] == <span class="charliteral">'\n'</span>)
+00189 <span class="keywordflow">break</span>;
+00190 }
+00191 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a>.length() &gt; this-&gt;<a class="code" href="classuserrec.html#o22">recvqmax</a>)
+00192 {
+00193 this-&gt;<a class="code" href="classuserrec.html#a12">SetWriteError</a>(<span class="stringliteral">"RecvQ exceeded"</span>);
+00194 WriteOpers(<span class="stringliteral">"*** User %s RecvQ of %d exceeds connect class maximum of %d"</span>,this-&gt;nick,<a class="code" href="classuserrec.html#o15">recvq</a>.length(),this-&gt;<a class="code" href="classuserrec.html#o22">recvqmax</a>);
+00195 }
+00196 <span class="comment">// return false if we've had more than 600 characters WITHOUT</span>
+00197 <span class="comment">// a carriage return (this is BAD, drop the socket)</span>
+00198 <span class="keywordflow">return</span> (i &lt; 600);
+00199 }
</pre></div> </td>
</tr>
</table>
@@ -337,23 +340,23 @@ Adds to the user's write buffer.
<p>
You may add any amount of text up to this users sendq value, if you exceed the sendq value, <a class="el" href="classuserrec.html#a12">SetWriteError()</a> will be called to set the users error string to "SendQ exceeded", and further buffer adds will be dropped.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00225">225</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
-<p>
-References <a class="el" href="users_8cpp-source.html#l00271">GetWriteError()</a>, <a class="el" href="users_8h-source.html#l00200">sendq</a>, <a class="el" href="users_8h-source.html#l00214">sendqmax</a>, and <a class="el" href="users_8cpp-source.html#l00263">SetWriteError()</a>.
-<p>
-<div class="fragment"><pre>00226 {
-00227 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classuserrec.html#a13">GetWriteError</a>() != <span class="stringliteral">""</span>)
-00228 <span class="keywordflow">return</span>;
-00229 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o16">sendq</a>.length() + data.length() &gt; this-&gt;<a class="code" href="classuserrec.html#o21">sendqmax</a>)
-00230 {
-00231 WriteOpers(<span class="stringliteral">"*** User %s SendQ of %d exceeds connect class maximum of %d"</span>,this-&gt;nick,<a class="code" href="classuserrec.html#o16">sendq</a>.length() + data.length(),this-&gt;<a class="code" href="classuserrec.html#o21">sendqmax</a>);
-00232 this-&gt;<a class="code" href="classuserrec.html#a12">SetWriteError</a>(<span class="stringliteral">"SendQ exceeded"</span>);
-00233 <span class="keywordflow">return</span>;
-00234 }
-00235 std::stringstream stream;
-00236 stream &lt;&lt; <a class="code" href="classuserrec.html#o16">sendq</a> &lt;&lt; data;
-00237 <a class="code" href="classuserrec.html#o16">sendq</a> = stream.str();
-00238 }
+Definition at line <a class="el" href="users_8cpp-source.html#l00231">231</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+<p>
+References <a class="el" href="users_8cpp-source.html#l00277">GetWriteError()</a>, <a class="el" href="users_8h-source.html#l00200">sendq</a>, <a class="el" href="users_8h-source.html#l00214">sendqmax</a>, and <a class="el" href="users_8cpp-source.html#l00269">SetWriteError()</a>.
+<p>
+<div class="fragment"><pre>00232 {
+00233 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classuserrec.html#a13">GetWriteError</a>() != <span class="stringliteral">""</span>)
+00234 <span class="keywordflow">return</span>;
+00235 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o16">sendq</a>.length() + data.length() &gt; this-&gt;<a class="code" href="classuserrec.html#o21">sendqmax</a>)
+00236 {
+00237 WriteOpers(<span class="stringliteral">"*** User %s SendQ of %d exceeds connect class maximum of %d"</span>,this-&gt;nick,<a class="code" href="classuserrec.html#o16">sendq</a>.length() + data.length(),this-&gt;<a class="code" href="classuserrec.html#o21">sendqmax</a>);
+00238 this-&gt;<a class="code" href="classuserrec.html#a12">SetWriteError</a>(<span class="stringliteral">"SendQ exceeded"</span>);
+00239 <span class="keywordflow">return</span>;
+00240 }
+00241 std::stringstream stream;
+00242 stream &lt;&lt; <a class="code" href="classuserrec.html#o16">sendq</a> &lt;&lt; data;
+00243 <a class="code" href="classuserrec.html#o16">sendq</a> = stream.str();
+00244 }
</pre></div> </td>
</tr>
</table>
@@ -386,16 +389,16 @@ This method returns true if the buffer contains at least one carriage return cha
<p>
one complete line may be read)
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00195">195</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00201">201</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="users_8h-source.html#l00195">recvq</a>.
<p>
-<div class="fragment"><pre>00196 {
-00197 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="classuserrec.html#o15">recvq</a>.length(); i++)
-00198 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a>[i] == <span class="charliteral">'\n'</span>)
-00199 <span class="keywordflow">return</span> <span class="keyword">true</span>;
-00200 <span class="keywordflow">return</span> <span class="keyword">false</span>;
-00201 }
+<div class="fragment"><pre>00202 {
+00203 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="classuserrec.html#o15">recvq</a>.length(); i++)
+00204 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a>[i] == <span class="charliteral">'\n'</span>)
+00205 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00206 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00207 }
</pre></div> </td>
</tr>
</table>
@@ -428,15 +431,15 @@ This function clears the entire buffer by setting it to an empty string.
<p>
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00203">203</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00209">209</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="users_8h-source.html#l00195">recvq</a>.
<p>
-Referenced by <a class="el" href="modules_8cpp-source.html#l00700">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::UserToPseudo()</a>.
+Referenced by <a class="el" href="modules_8cpp-source.html#l00629">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00610">Server::UserToPseudo()</a>.
<p>
-<div class="fragment"><pre>00204 {
-00205 <a class="code" href="classuserrec.html#o15">recvq</a> = <span class="stringliteral">""</span>;
-00206 }
+<div class="fragment"><pre>00210 {
+00211 <a class="code" href="classuserrec.html#o15">recvq</a> = <span class="stringliteral">""</span>;
+00212 }
</pre></div> </td>
</tr>
</table>
@@ -469,30 +472,30 @@ Flushes as much of the user's buffer to the file descriptor as possible.
<p>
This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00241">241</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
-<p>
-References <a class="el" href="connection_8h-source.html#l00231">connection::bytes_out</a>, <a class="el" href="connection_8h-source.html#l00239">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00200">sendq</a>, and <a class="el" href="users_8cpp-source.html#l00263">SetWriteError()</a>.
-<p>
-<div class="fragment"><pre>00242 {
-00243 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o16">sendq</a>.length())
-00244 {
-00245 <span class="keywordtype">char</span>* tb = (<span class="keywordtype">char</span>*)this-&gt;<a class="code" href="classuserrec.html#o16">sendq</a>.c_str();
-00246 <span class="keywordtype">int</span> n_sent = write(this-&gt;fd,tb,this-&gt;sendq.length());
-00247 <span class="keywordflow">if</span> (n_sent == -1)
-00248 {
-00249 this-&gt;<a class="code" href="classuserrec.html#a12">SetWriteError</a>(strerror(errno));
-00250 }
-00251 <span class="keywordflow">else</span>
-00252 {
-00253 <span class="comment">// advance the queue</span>
-00254 tb += n_sent;
-00255 this-&gt;<a class="code" href="classuserrec.html#o16">sendq</a> = tb;
-00256 <span class="comment">// update the user's stats counters</span>
-00257 this-&gt;<a class="code" href="classconnection.html#o4">bytes_out</a> += n_sent;
-00258 this-&gt;<a class="code" href="classconnection.html#o6">cmds_out</a>++;
-00259 }
-00260 }
-00261 }
+Definition at line <a class="el" href="users_8cpp-source.html#l00247">247</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+<p>
+References <a class="el" href="connection_8h-source.html#l00233">connection::bytes_out</a>, <a class="el" href="connection_8h-source.html#l00241">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00200">sendq</a>, and <a class="el" href="users_8cpp-source.html#l00269">SetWriteError()</a>.
+<p>
+<div class="fragment"><pre>00248 {
+00249 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o16">sendq</a>.length())
+00250 {
+00251 <span class="keywordtype">char</span>* tb = (<span class="keywordtype">char</span>*)this-&gt;<a class="code" href="classuserrec.html#o16">sendq</a>.c_str();
+00252 <span class="keywordtype">int</span> n_sent = write(this-&gt;fd,tb,this-&gt;sendq.length());
+00253 <span class="keywordflow">if</span> (n_sent == -1)
+00254 {
+00255 this-&gt;<a class="code" href="classuserrec.html#a12">SetWriteError</a>(strerror(errno));
+00256 }
+00257 <span class="keywordflow">else</span>
+00258 {
+00259 <span class="comment">// advance the queue</span>
+00260 tb += n_sent;
+00261 this-&gt;<a class="code" href="classuserrec.html#o16">sendq</a> = tb;
+00262 <span class="comment">// update the user's stats counters</span>
+00263 this-&gt;<a class="code" href="classconnection.html#o4">bytes_out</a> += n_sent;
+00264 this-&gt;<a class="code" href="classconnection.html#o6">cmds_out</a>++;
+00265 }
+00266 }
+00267 }
</pre></div> </td>
</tr>
</table>
@@ -525,25 +528,25 @@ This method returns the first available string at the tail end of the buffer and
<p>
This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use <a class="el" href="classuserrec.html#a9">BufferIsReady()</a> to check if it is ok to read the buffer before calling <a class="el" href="classuserrec.html#a11">GetBuffer()</a>.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00208">208</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00214">214</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="users_8h-source.html#l00195">recvq</a>.
<p>
-<div class="fragment"><pre>00209 {
-00210 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a> == <span class="stringliteral">""</span>)
-00211 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
-00212 <span class="keywordtype">char</span>* line = (<span class="keywordtype">char</span>*)<a class="code" href="classuserrec.html#o15">recvq</a>.c_str();
-00213 std::string ret = <span class="stringliteral">""</span>;
-00214 <span class="keywordflow">while</span> ((*line != <span class="charliteral">'\n'</span>) &amp;&amp; (strlen(line)))
-00215 {
-00216 ret = ret + *line;
-00217 line++;
-00218 }
-00219 <span class="keywordflow">if</span> ((*line == <span class="charliteral">'\n'</span>) || (*line == <span class="charliteral">'\r'</span>))
-00220 line++;
-00221 <a class="code" href="classuserrec.html#o15">recvq</a> = line;
-00222 <span class="keywordflow">return</span> ret;
-00223 }
+<div class="fragment"><pre>00215 {
+00216 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o15">recvq</a> == <span class="stringliteral">""</span>)
+00217 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
+00218 <span class="keywordtype">char</span>* line = (<span class="keywordtype">char</span>*)<a class="code" href="classuserrec.html#o15">recvq</a>.c_str();
+00219 std::string ret = <span class="stringliteral">""</span>;
+00220 <span class="keywordflow">while</span> ((*line != <span class="charliteral">'\n'</span>) &amp;&amp; (strlen(line)))
+00221 {
+00222 ret = ret + *line;
+00223 line++;
+00224 }
+00225 <span class="keywordflow">if</span> ((*line == <span class="charliteral">'\n'</span>) || (*line == <span class="charliteral">'\r'</span>))
+00226 line++;
+00227 <a class="code" href="classuserrec.html#o15">recvq</a> = line;
+00228 <span class="keywordflow">return</span> ret;
+00229 }
</pre></div> </td>
</tr>
</table>
@@ -576,14 +579,14 @@ Returns the full displayed host of the user This member function returns the hos
<p>
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00061">61</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00062">62</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="users_8h-source.html#l00130">dhost</a>, <a class="el" href="users_8h-source.html#l00125">ident</a>, <a class="el" href="users_8h-source.html#l00121">nick</a>, and <a class="el" href="users_8h-source.html#l00156">result</a>.
<p>
-<div class="fragment"><pre>00062 {
-00063 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost);
-00064 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>;
-00065 }
+<div class="fragment"><pre>00063 {
+00064 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost);
+00065 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>;
+00066 }
</pre></div> </td>
</tr>
</table>
@@ -616,14 +619,53 @@ Returns the full real host of the user This member function returns the hostname
<p>
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.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00068">68</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00069">69</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+<p>
+References <a class="el" href="connection_8h-source.html#l00221">connection::host</a>, <a class="el" href="users_8h-source.html#l00125">ident</a>, <a class="el" href="users_8h-source.html#l00121">nick</a>, and <a class="el" href="users_8h-source.html#l00156">result</a>.
+<p>
+<div class="fragment"><pre>00070 {
+00071 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host);
+00072 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>;
+00073 }
+</pre></div> </td>
+ </tr>
+</table>
+<a name="a16" doxytag="userrec::GetInviteList"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="users_8h.html#a6">InvitedList</a> * userrec::GetInviteList </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Returns the list of channels this user has been invited to but has not yet joined.
+<p>
+
+<p>
+Definition at line <a class="el" href="users_8cpp-source.html#l00089">89</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
-References <a class="el" href="connection_8h-source.html#l00219">connection::host</a>, <a class="el" href="users_8h-source.html#l00125">ident</a>, <a class="el" href="users_8h-source.html#l00121">nick</a>, and <a class="el" href="users_8h-source.html#l00156">result</a>.
+References <a class="el" href="users_8h-source.html#l00094">InvitedList</a>, and <a class="el" href="users_8h-source.html#l00114">invites</a>.
<p>
-<div class="fragment"><pre>00069 {
-00070 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host);
-00071 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>;
-00072 }
+<div class="fragment"><pre>00090 {
+00091 <span class="keywordflow">return</span> &amp;<a class="code" href="classuserrec.html#r0">invites</a>;
+00092 }
</pre></div> </td>
</tr>
</table>
@@ -656,15 +698,15 @@ Returns the write error which last occured on this connection or an empty string
<p>
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00271">271</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00277">277</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="users_8h-source.html#l00210">WriteError</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00225">AddWriteBuf()</a>.
+Referenced by <a class="el" href="users_8cpp-source.html#l00231">AddWriteBuf()</a>.
<p>
-<div class="fragment"><pre>00272 {
-00273 <span class="keywordflow">return</span> this-&gt;<a class="code" href="classuserrec.html#o20">WriteError</a>;
-00274 }
+<div class="fragment"><pre>00278 {
+00279 <span class="keywordflow">return</span> this-&gt;<a class="code" href="classuserrec.html#o20">WriteError</a>;
+00280 }
</pre></div> </td>
</tr>
</table>
@@ -698,59 +740,59 @@ Returns true or false for if a user can execute a privilaged oper command.
<p>
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.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00117">117</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
-<p>
-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>.
-<p>
-<div class="fragment"><pre>00118 {
-00119 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
-00120 <span class="keywordtype">char</span>* mycmd;
-00121 <span class="keywordtype">char</span>* savept;
-00122 <span class="keywordtype">char</span>* savept2;
-00123
-00124 <span class="comment">// are they even an oper at all?</span>
-00125 <span class="keywordflow">if</span> (strchr(this-&gt;modes,<span class="charliteral">'o'</span>))
-00126 {
-00127 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this-&gt;nick);
-00128 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j &lt; ConfValueEnum(<span class="stringliteral">"type"</span>,&amp;config_f); j++)
-00129 {
-00130 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&amp;config_f);
-00131 <span class="keywordflow">if</span> (!strcmp(TypeName,this-&gt;oper))
-00132 {
-00133 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this-&gt;nick,this-&gt;oper);
-00134 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&amp;config_f);
-00135 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&amp;savept);
-00136 <span class="keywordflow">while</span> (myclass)
-00137 {
-00138 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass);
-00139 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k &lt; ConfValueEnum(<span class="stringliteral">"class"</span>,&amp;config_f); k++)
-00140 {
-00141 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&amp;config_f);
-00142 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass))
-00143 {
-00144 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&amp;config_f);
-00145 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList);
-00146
-00147
-00148 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&amp;savept2);
-00149 <span class="keywordflow">while</span> (mycmd)
-00150 {
-00151 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command))
-00152 {
-00153 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command);
-00154 <span class="keywordflow">return</span> <span class="keyword">true</span>;
-00155 }
-00156 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&amp;savept2);
-00157 }
-00158 }
-00159 }
-00160 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&amp;savept);
-00161 }
-00162 }
-00163 }
-00164 }
-00165 <span class="keywordflow">return</span> <span class="keyword">false</span>;
-00166 }
+Definition at line <a class="el" href="users_8cpp-source.html#l00123">123</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+<p>
+References <a class="el" href="channels_8cpp-source.html#l00096">config_f</a>, and <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>.
+<p>
+<div class="fragment"><pre>00124 {
+00125 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
+00126 <span class="keywordtype">char</span>* mycmd;
+00127 <span class="keywordtype">char</span>* savept;
+00128 <span class="keywordtype">char</span>* savept2;
+00129
+00130 <span class="comment">// are they even an oper at all?</span>
+00131 <span class="keywordflow">if</span> (strchr(this-&gt;modes,<span class="charliteral">'o'</span>))
+00132 {
+00133 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this-&gt;nick);
+00134 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j &lt; ConfValueEnum(<span class="stringliteral">"type"</span>,&amp;config_f); j++)
+00135 {
+00136 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&amp;config_f);
+00137 <span class="keywordflow">if</span> (!strcmp(TypeName,this-&gt;oper))
+00138 {
+00139 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this-&gt;nick,this-&gt;oper);
+00140 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&amp;config_f);
+00141 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&amp;savept);
+00142 <span class="keywordflow">while</span> (myclass)
+00143 {
+00144 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass);
+00145 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k &lt; ConfValueEnum(<span class="stringliteral">"class"</span>,&amp;config_f); k++)
+00146 {
+00147 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&amp;config_f);
+00148 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass))
+00149 {
+00150 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&amp;config_f);
+00151 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList);
+00152
+00153
+00154 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&amp;savept2);
+00155 <span class="keywordflow">while</span> (mycmd)
+00156 {
+00157 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command))
+00158 {
+00159 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command);
+00160 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00161 }
+00162 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&amp;savept2);
+00163 }
+00164 }
+00165 }
+00166 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&amp;savept);
+00167 }
+00168 }
+00169 }
+00170 }
+00171 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00172 }
</pre></div> </td>
</tr>
</table>
@@ -784,15 +826,15 @@ Adds a channel to a users invite list (invites them to a channel).
<p>
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00088">88</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00094">94</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="users_8h-source.html#l00039">Invited::channel</a>, and <a class="el" href="users_8h-source.html#l00114">invites</a>.
<p>
-<div class="fragment"><pre>00089 {
-00090 <a class="code" href="classInvited.html">Invited</a> i;
-00091 strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX);
-00092 <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i);
-00093 }
+<div class="fragment"><pre>00095 {
+00096 <a class="code" href="classInvited.html">Invited</a> i;
+00097 strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX);
+00098 <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i);
+00099 }
</pre></div> </td>
</tr>
</table>
@@ -826,22 +868,22 @@ Returns true if a user is invited to a channel.
<p>
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00074">74</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00075">75</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="users_8h-source.html#l00114">invites</a>.
<p>
-<div class="fragment"><pre>00075 {
-00076 <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++)
-00077 {
-00078 <span class="keywordflow">if</span> (i-&gt;channel) {
-00079 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
-00080 {
-00081 <span class="keywordflow">return</span> <span class="keyword">true</span>;
-00082 }
-00083 }
-00084 }
-00085 <span class="keywordflow">return</span> <span class="keyword">false</span>;
-00086 }
+<div class="fragment"><pre>00076 {
+00077 <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++)
+00078 {
+00079 <span class="keywordflow">if</span> (i-&gt;channel) {
+00080 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
+00081 {
+00082 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00083 }
+00084 }
+00085 }
+00086 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00087 }
</pre></div> </td>
</tr>
</table>
@@ -875,30 +917,30 @@ Removes a channel from a users invite list.
<p>
This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00095">95</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00101">101</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00114">invites</a>.
<p>
-<div class="fragment"><pre>00096 {
-00097 log(DEBUG,<span class="stringliteral">"Removing invites"</span>);
-00098 <span class="keywordflow">if</span> (channel)
-00099 {
-00100 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size())
-00101 {
-00102 <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++)
-00103 {
-00104 <span class="keywordflow">if</span> (i-&gt;channel)
-00105 {
-00106 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
-00107 {
-00108 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i);
-00109 <span class="keywordflow">return</span>;
-00110 }
-00111 }
-00112 }
-00113 }
-00114 }
-00115 }
+<div class="fragment"><pre>00102 {
+00103 log(DEBUG,<span class="stringliteral">"Removing invites"</span>);
+00104 <span class="keywordflow">if</span> (channel)
+00105 {
+00106 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size())
+00107 {
+00108 <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++)
+00109 {
+00110 <span class="keywordflow">if</span> (i-&gt;channel)
+00111 {
+00112 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
+00113 {
+00114 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i);
+00115 <span class="keywordflow">return</span>;
+00116 }
+00117 }
+00118 }
+00119 }
+00120 }
+00121 }
</pre></div> </td>
</tr>
</table>
@@ -932,18 +974,18 @@ Sets the write error for a connection.
<p>
This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged.
<p>
-Definition at line <a class="el" href="users_8cpp-source.html#l00263">263</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
+Definition at line <a class="el" href="users_8cpp-source.html#l00269">269</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.
<p>
References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00210">WriteError</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00169">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00225">AddWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00241">FlushWriteBuf()</a>.
+Referenced by <a class="el" href="users_8cpp-source.html#l00175">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00231">AddWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00247">FlushWriteBuf()</a>.
<p>
-<div class="fragment"><pre>00264 {
-00265 log(DEBUG,<span class="stringliteral">"Setting error string for %s to '%s'"</span>,this-&gt;nick,error.c_str());
-00266 <span class="comment">// don't try to set the error twice, its already set take the first string.</span>
-00267 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classuserrec.html#o20">WriteError</a> == <span class="stringliteral">""</span>)
-00268 this-&gt;<a class="code" href="classuserrec.html#o20">WriteError</a> = error;
-00269 }
+<div class="fragment"><pre>00270 {
+00271 log(DEBUG,<span class="stringliteral">"Setting error string for %s to '%s'"</span>,this-&gt;nick,error.c_str());
+00272 <span class="comment">// don't try to set the error twice, its already set take the first string.</span>
+00273 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classuserrec.html#o20">WriteError</a> == <span class="stringliteral">""</span>)
+00274 this-&gt;<a class="code" href="classuserrec.html#o20">WriteError</a> = error;
+00275 }
</pre></div> </td>
</tr>
</table>
@@ -973,7 +1015,7 @@ If this string is empty, the user is not marked as away.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00151">151</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o5" doxytag="userrec::chans"></a><p>
@@ -999,7 +1041,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00142">142</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="modules_8cpp-source.html#l00700">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="modules_8cpp-source.html#l00629">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o2" doxytag="userrec::dhost"></a><p>
@@ -1027,7 +1069,7 @@ This usually matches the value of <a class="el" href="classconnection.html#o1">u
<p>
Definition at line <a class="el" href="users_8h-source.html#l00130">130</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00061">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00062">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o12" doxytag="userrec::dns_done"></a><p>
@@ -1055,7 +1097,7 @@ True when <a class="el" href="classDNS.html">DNS</a> lookups are completed.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00179">179</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o9" doxytag="userrec::flood"></a><p>
@@ -1083,7 +1125,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi
<p>
Definition at line <a class="el" href="users_8h-source.html#l00162">162</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o3" doxytag="userrec::fullname"></a><p>
@@ -1111,7 +1153,7 @@ The users full name.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00134">134</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o1" doxytag="userrec::ident"></a><p>
@@ -1139,7 +1181,7 @@ The users ident reply.
<p>
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>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00061">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00068">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00700">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::UserToPseudo()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00062">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00069">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00629">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00610">Server::UserToPseudo()</a>. </td>
</tr>
</table>
<a name="r0" doxytag="userrec::invites"></a><p>
@@ -1167,7 +1209,7 @@ A list of channels the user has a pending invite to.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00114">114</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00088">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00074">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00095">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00089">GetInviteList()</a>, <a class="el" href="users_8cpp-source.html#l00094">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00075">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00101">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o17" doxytag="userrec::lines_in"></a><p>
@@ -1195,7 +1237,7 @@ Flood counters.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00204">204</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o4" doxytag="userrec::modes"></a><p>
@@ -1223,7 +1265,7 @@ This may contain any of the following RFC characters: o, w, s, i Your module may
<p>
Definition at line <a class="el" href="users_8h-source.html#l00140">140</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o0" doxytag="userrec::nick"></a><p>
@@ -1251,7 +1293,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma
<p>
Definition at line <a class="el" href="users_8h-source.html#l00121">121</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="modules_8cpp-source.html#l00967">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00061">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00068">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00700">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="modules_8cpp-source.html#l00896">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00062">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00069">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00629">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o11" doxytag="userrec::oper"></a><p>
@@ -1279,7 +1321,7 @@ This is used to check permissions in operclasses, so that we can say 'yay' or 'n
<p>
Definition at line <a class="el" href="users_8h-source.html#l00175">175</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o14" doxytag="userrec::password"></a><p>
@@ -1359,7 +1401,7 @@ Lines from the IRCd awaiting processing are stored here. Upgraded april 2005, ol
<p>
Definition at line <a class="el" href="users_8h-source.html#l00195">195</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00169">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00195">BufferIsReady()</a>, <a class="el" href="users_8cpp-source.html#l00203">ClearBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00208">GetBuffer()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00175">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00201">BufferIsReady()</a>, <a class="el" href="users_8cpp-source.html#l00209">ClearBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00214">GetBuffer()</a>, and <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o22" doxytag="userrec::recvqmax"></a><p>
@@ -1387,7 +1429,7 @@ Maximum size this user's recvq can become.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00218">218</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00169">AddBuffer()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00175">AddBuffer()</a>. </td>
</tr>
</table>
<a name="o18" doxytag="userrec::reset_due"></a><p>
@@ -1413,7 +1455,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00169">AddBuffer()</a>
<p>
Definition at line <a class="el" href="users_8h-source.html#l00205">205</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o8" doxytag="userrec::result"></a><p>
@@ -1441,7 +1483,7 @@ You may use this to increase the speed of use of this class.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00156">156</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00061">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00068">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00062">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00069">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o16" doxytag="userrec::sendq"></a><p>
@@ -1469,7 +1511,7 @@ Lines waiting to be sent are stored here until their buffer is flushed.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00200">200</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00225">AddWriteBuf()</a>, <a class="el" href="users_8cpp-source.html#l00241">FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00231">AddWriteBuf()</a>, <a class="el" href="users_8cpp-source.html#l00247">FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o21" doxytag="userrec::sendqmax"></a><p>
@@ -1497,7 +1539,7 @@ Maximum size this user's sendq can become.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00214">214</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00225">AddWriteBuf()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00231">AddWriteBuf()</a>. </td>
</tr>
</table>
<a name="o6" doxytag="userrec::server"></a><p>
@@ -1525,7 +1567,7 @@ The server the user is connected to.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00146">146</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o19" doxytag="userrec::threshold"></a><p>
@@ -1577,7 +1619,7 @@ Number of seconds this user is given to send USER/NICK If they do not send their
<p>
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>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00029">userrec()</a>. </td>
</tr>
</table>
<a name="o20" doxytag="userrec::WriteError"></a><p>
@@ -1603,12 +1645,12 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>.
<p>
Definition at line <a class="el" href="users_8h-source.html#l00210">210</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
<p>
-Referenced by <a class="el" href="users_8cpp-source.html#l00271">GetWriteError()</a>, and <a class="el" href="users_8cpp-source.html#l00263">SetWriteError()</a>. </td>
+Referenced by <a class="el" href="users_8cpp-source.html#l00277">GetWriteError()</a>, and <a class="el" href="users_8cpp-source.html#l00269">SetWriteError()</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<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>
-<hr size="1"><address style="align: right;"><small>Generated on Fri May 13 15:50:05 2005 for InspIRCd by
+<hr size="1"><address style="align: right;"><small>Generated on Sun May 15 17:03:51 2005 for InspIRCd by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.3 </small></address>