summaryrefslogtreecommitdiff
path: root/docs/module-doc/users_8cpp-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/module-doc/users_8cpp-source.html')
-rw-r--r--docs/module-doc/users_8cpp-source.html180
1 files changed, 90 insertions, 90 deletions
diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html
index 8575303e7..9557e2486 100644
--- a/docs/module-doc/users_8cpp-source.html
+++ b/docs/module-doc/users_8cpp-source.html
@@ -9,99 +9,99 @@
<hr><h1>users.cpp</h1><a href="users_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment"></span>
00003 <span class="comment">$Log$
-00003 <span class="comment">Revision 1.1 2003/01/23 19:45:58 brain
-00003 <span class="comment">Initial revision
-00003 <span class="comment">
-00003 <span class="comment">Revision 1.6 2003/01/22 20:59:12 brain
-00003 <span class="comment">Added FileReader class documentation
+00003 <span class="comment">Revision 1.2 2003/01/23 20:38:00 brain
+00003 <span class="comment">Updated documentation scripts
00003 <span class="comment"></span>
-00004 <span class="comment">Revision 1.3 2003/01/17 13:21:38 brain</span>
-00005 <span class="comment">Added CONNECT ALLOW and CONNECT DENY config tags</span>
-00006 <span class="comment">Added PASS command</span>
-00007 <span class="comment"></span>
-00008 <span class="comment">Revision 1.2 2003/01/17 10:37:55 brain</span>
-00009 <span class="comment">Added /INVITE command and relevent structures</span>
+00004 <span class="comment">Revision 1.1.1.1 2003/01/23 19:45:58 brain</span>
+00005 <span class="comment">InspIRCd second source tree</span>
+00006 <span class="comment"></span>
+00007 <span class="comment">Revision 1.3 2003/01/17 13:21:38 brain</span>
+00008 <span class="comment">Added CONNECT ALLOW and CONNECT DENY config tags</span>
+00009 <span class="comment">Added PASS command</span>
00010 <span class="comment"></span>
-00011 <span class="comment">Revision 1.1 2003/01/16 01:10:04 brain</span>
-00012 <span class="comment">forgot to add this</span>
+00011 <span class="comment">Revision 1.2 2003/01/17 10:37:55 brain</span>
+00012 <span class="comment">Added /INVITE command and relevent structures</span>
00013 <span class="comment"></span>
-00014 <span class="comment"></span>
-00015 <span class="comment">*/</span>
-00016
-00017 <span class="preprocessor">#include "inspircd_config.h"</span>
-00018 <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span>
-00019 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span>
-00020 <span class="preprocessor">#include "inspircd.h"</span>
-00021 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
-00022
-<a name="l00023"></a><a class="code" href="classuserrec.html#a0">00023</a> <a class="code" href="classuserrec.html#a0">userrec::userrec</a>()
-00024 {
-00025 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span>
-00026 strcpy(nick,<span class="stringliteral">""</span>);
-00027 <a class="code" href="classuserrec.html#m1">ip</a> = 0;
-00028 strcpy(ident,<span class="stringliteral">""</span>);
-00029 strcpy(host,<span class="stringliteral">""</span>);
-00030 strcpy(dhost,<span class="stringliteral">""</span>);
-00031 strcpy(fullname,<span class="stringliteral">""</span>);
-00032 strcpy(modes,<span class="stringliteral">""</span>);
-00033 strcpy(inbuf,<span class="stringliteral">""</span>);
-00034 strcpy(server,<span class="stringliteral">""</span>);
-00035 strcpy(awaymsg,<span class="stringliteral">""</span>);
-00036 <a class="code" href="classuserrec.html#m6">fd</a> = <a class="code" href="classuserrec.html#m9">lastping</a> = <a class="code" href="classuserrec.html#m10">signon</a> = <a class="code" href="classuserrec.html#m11">idle_lastmsg</a> = <a class="code" href="classuserrec.html#m12">nping</a> = <a class="code" href="classuserrec.html#m13">registered</a> = 0;
-00037 <a class="code" href="classuserrec.html#m17">port</a> = <a class="code" href="classuserrec.html#m18">bytes_in</a> = <a class="code" href="classuserrec.html#m19">bytes_out</a> = <a class="code" href="classuserrec.html#m20">cmds_in</a> = <a class="code" href="classuserrec.html#m21">cmds_out</a> = 0;
-00038 <a class="code" href="classuserrec.html#m23">haspassed</a> = <span class="keyword">false</span>;
-00039 strcpy(result,<span class="stringliteral">""</span>);
-00040 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; MAXCHANS; i++)
-00041 {
-00042 <a class="code" href="classuserrec.html#m14">chans</a>[i].<a class="code" href="classucrec.html#m1">channel</a> = NULL;
-00043 }
-00044 <a class="code" href="classuserrec.html#o0">invites</a>.clear();
-00045 }
-00046
-00047
-<a name="l00048"></a><a class="code" href="classuserrec.html#a2">00048</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">userrec::GetFullHost</a>()
-00049 {
-00050 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost);
-00051 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m22">result</a>;
-00052 }
-00053
-00054
-<a name="l00055"></a><a class="code" href="classuserrec.html#a3">00055</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">userrec::GetFullRealHost</a>()
-00056 {
-00057 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host);
-00058 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m22">result</a>;
-00059 }
-00060
-<a name="l00061"></a><a class="code" href="classuserrec.html#a4">00061</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a4">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel)
-00062 {
-00063 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#o0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#o0">invites</a>.end(); i++)
-00064 {
-00065 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
-00066 {
-00067 <span class="keywordflow">return</span> <span class="keyword">true</span>;
-00068 }
-00069 }
-00070 }
-00071
-<a name="l00072"></a><a class="code" href="classuserrec.html#a5">00072</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel)
-00073 {
-00074 <a class="code" href="classInvited.html">Invited</a> i;
-00075 strcpy(i.<a class="code" href="classInvited.html#m0">channel</a>,channel);
-00076 <a class="code" href="classuserrec.html#o0">invites</a>.push_back(i);
-00077 }
-00078
-<a name="l00079"></a><a class="code" href="classuserrec.html#a6">00079</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel)
-00080 {
-00081 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#o0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#o0">invites</a>.end(); i++)
-00082 {
-00083 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
-00084 {
-00085 <a class="code" href="classuserrec.html#o0">invites</a>.erase(i);
-00086 <span class="keywordflow">return</span>;
-00087 }
-00088 }
-00089 }
-</pre></div><hr><address style="align: right;"><small>Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by
+00014 <span class="comment">Revision 1.1 2003/01/16 01:10:04 brain</span>
+00015 <span class="comment">forgot to add this</span>
+00016 <span class="comment"></span>
+00017 <span class="comment"></span>
+00018 <span class="comment">*/</span>
+00019
+00020 <span class="preprocessor">#include "inspircd_config.h"</span>
+00021 <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span>
+00022 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span>
+00023 <span class="preprocessor">#include "inspircd.h"</span>
+00024 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
+00025
+<a name="l00026"></a><a class="code" href="classuserrec.html#a0">00026</a> <a class="code" href="classuserrec.html#a0">userrec::userrec</a>()
+00027 {
+00028 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span>
+00029 strcpy(nick,<span class="stringliteral">""</span>);
+00030 <a class="code" href="classuserrec.html#m1">ip</a> = 0;
+00031 strcpy(ident,<span class="stringliteral">""</span>);
+00032 strcpy(host,<span class="stringliteral">""</span>);
+00033 strcpy(dhost,<span class="stringliteral">""</span>);
+00034 strcpy(fullname,<span class="stringliteral">""</span>);
+00035 strcpy(modes,<span class="stringliteral">""</span>);
+00036 strcpy(inbuf,<span class="stringliteral">""</span>);
+00037 strcpy(server,<span class="stringliteral">""</span>);
+00038 strcpy(awaymsg,<span class="stringliteral">""</span>);
+00039 <a class="code" href="classuserrec.html#m6">fd</a> = <a class="code" href="classuserrec.html#m9">lastping</a> = <a class="code" href="classuserrec.html#m10">signon</a> = <a class="code" href="classuserrec.html#m11">idle_lastmsg</a> = <a class="code" href="classuserrec.html#m12">nping</a> = <a class="code" href="classuserrec.html#m13">registered</a> = 0;
+00040 <a class="code" href="classuserrec.html#m17">port</a> = <a class="code" href="classuserrec.html#m18">bytes_in</a> = <a class="code" href="classuserrec.html#m19">bytes_out</a> = <a class="code" href="classuserrec.html#m20">cmds_in</a> = <a class="code" href="classuserrec.html#m21">cmds_out</a> = 0;
+00041 <a class="code" href="classuserrec.html#m23">haspassed</a> = <span class="keyword">false</span>;
+00042 strcpy(result,<span class="stringliteral">""</span>);
+00043 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; MAXCHANS; i++)
+00044 {
+00045 <a class="code" href="classuserrec.html#m14">chans</a>[i].<a class="code" href="classucrec.html#m1">channel</a> = NULL;
+00046 }
+00047 <a class="code" href="classuserrec.html#o0">invites</a>.clear();
+00048 }
+00049
+00050
+<a name="l00051"></a><a class="code" href="classuserrec.html#a2">00051</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">userrec::GetFullHost</a>()
+00052 {
+00053 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost);
+00054 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m22">result</a>;
+00055 }
+00056
+00057
+<a name="l00058"></a><a class="code" href="classuserrec.html#a3">00058</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">userrec::GetFullRealHost</a>()
+00059 {
+00060 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host);
+00061 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m22">result</a>;
+00062 }
+00063
+<a name="l00064"></a><a class="code" href="classuserrec.html#a4">00064</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a4">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel)
+00065 {
+00066 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#o0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#o0">invites</a>.end(); i++)
+00067 {
+00068 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
+00069 {
+00070 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00071 }
+00072 }
+00073 }
+00074
+<a name="l00075"></a><a class="code" href="classuserrec.html#a5">00075</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel)
+00076 {
+00077 <a class="code" href="classInvited.html">Invited</a> i;
+00078 strcpy(i.<a class="code" href="classInvited.html#m0">channel</a>,channel);
+00079 <a class="code" href="classuserrec.html#o0">invites</a>.push_back(i);
+00080 }
+00081
+<a name="l00082"></a><a class="code" href="classuserrec.html#a6">00082</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel)
+00083 {
+00084 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#o0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#o0">invites</a>.end(); i++)
+00085 {
+00086 <span class="keywordflow">if</span> (!strcasecmp(i-&gt;channel,channel))
+00087 {
+00088 <a class="code" href="classuserrec.html#o0">invites</a>.erase(i);
+00089 <span class="keywordflow">return</span>;
+00090 }
+00091 }
+00092 }
+</pre></div><hr><address style="align: right;"><small>Generated on Thu Jan 23 20:28:57 2003 for InspIRCd by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3-rc2 </small></address>