diff options
Diffstat (limited to 'docs/module-doc/users_8cpp-source.html')
-rw-r--r-- | docs/module-doc/users_8cpp-source.html | 143 |
1 files changed, 72 insertions, 71 deletions
diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 307ca5fa1..2a71381c2 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -21,78 +21,79 @@ 00013 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> 00014 strcpy(nick,<span class="stringliteral">""</span>); 00015 <a class="code" href="classconnection.html#m3">ip</a> = 0; -00016 strcpy(ident,<span class="stringliteral">""</span>); -00017 strcpy(host,<span class="stringliteral">""</span>); -00018 strcpy(dhost,<span class="stringliteral">""</span>); -00019 strcpy(fullname,<span class="stringliteral">""</span>); -00020 strcpy(modes,<span class="stringliteral">""</span>); -00021 strcpy(inbuf,<span class="stringliteral">""</span>); -00022 strcpy(server,<span class="stringliteral">""</span>); -00023 strcpy(awaymsg,<span class="stringliteral">""</span>); -00024 <a class="code" href="classconnection.html#m1">fd</a> = <a class="code" href="classconnection.html#m12">lastping</a> = <a class="code" href="classconnection.html#m13">signon</a> = <a class="code" href="classconnection.html#m14">idle_lastmsg</a> = <a class="code" href="classconnection.html#m15">nping</a> = <a class="code" href="classconnection.html#m11">registered</a> = 0; -00025 <a class="code" href="classconnection.html#m10">port</a> = <a class="code" href="classconnection.html#m5">bytes_in</a> = <a class="code" href="classconnection.html#m6">bytes_out</a> = <a class="code" href="classconnection.html#m7">cmds_in</a> = <a class="code" href="classconnection.html#m8">cmds_out</a> = 0; -00026 <a class="code" href="classconnection.html#m9">haspassed</a> = <span class="keyword">false</span>; -00027 strcpy(result,<span class="stringliteral">""</span>); -00028 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) -00029 { -00030 <a class="code" href="classuserrec.html#m5">chans</a>[i].<a class="code" href="classucrec.html#m1">channel</a> = NULL; -00031 } -00032 <a class="code" href="classuserrec.html#o0">invites</a>.clear(); -00033 } -00034 -00035 -<a name="l00036"></a><a class="code" href="classuserrec.html#a2">00036</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">userrec::GetFullHost</a>() -00037 { -00038 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost); -00039 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m8">result</a>; -00040 } -00041 +00016 <a class="code" href="classuserrec.html#m9">timeout</a> = 0; +00017 strcpy(ident,<span class="stringliteral">""</span>); +00018 strcpy(host,<span class="stringliteral">""</span>); +00019 strcpy(dhost,<span class="stringliteral">""</span>); +00020 strcpy(fullname,<span class="stringliteral">""</span>); +00021 strcpy(modes,<span class="stringliteral">""</span>); +00022 strcpy(inbuf,<span class="stringliteral">""</span>); +00023 strcpy(server,<span class="stringliteral">""</span>); +00024 strcpy(awaymsg,<span class="stringliteral">""</span>); +00025 <a class="code" href="classconnection.html#m1">fd</a> = <a class="code" href="classconnection.html#m12">lastping</a> = <a class="code" href="classconnection.html#m13">signon</a> = <a class="code" href="classconnection.html#m14">idle_lastmsg</a> = <a class="code" href="classconnection.html#m15">nping</a> = <a class="code" href="classconnection.html#m11">registered</a> = 0; +00026 <a class="code" href="classconnection.html#m10">port</a> = <a class="code" href="classconnection.html#m5">bytes_in</a> = <a class="code" href="classconnection.html#m6">bytes_out</a> = <a class="code" href="classconnection.html#m7">cmds_in</a> = <a class="code" href="classconnection.html#m8">cmds_out</a> = 0; +00027 <a class="code" href="classconnection.html#m9">haspassed</a> = <span class="keyword">false</span>; +00028 strcpy(result,<span class="stringliteral">""</span>); +00029 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) +00030 { +00031 <a class="code" href="classuserrec.html#m5">chans</a>[i].<a class="code" href="classucrec.html#m1">channel</a> = NULL; +00032 } +00033 <a class="code" href="classuserrec.html#o0">invites</a>.clear(); +00034 } +00035 +00036 +<a name="l00037"></a><a class="code" href="classuserrec.html#a2">00037</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">userrec::GetFullHost</a>() +00038 { +00039 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost); +00040 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m8">result</a>; +00041 } 00042 -<a name="l00043"></a><a class="code" href="classuserrec.html#a3">00043</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">userrec::GetFullRealHost</a>() -00044 { -00045 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host); -00046 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m8">result</a>; -00047 } -00048 -<a name="l00049"></a><a class="code" href="classuserrec.html#a4">00049</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a4">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel) -00050 { -00051 <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++) -00052 { -00053 <span class="keywordflow">if</span> (i->channel) { -00054 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00055 { -00056 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00057 } -00058 } -00059 } -00060 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00061 } -00062 -<a name="l00063"></a><a class="code" href="classuserrec.html#a5">00063</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) -00064 { -00065 <a class="code" href="classInvited.html">Invited</a> i; -00066 strcpy(i.<a class="code" href="classInvited.html#m0">channel</a>,channel); -00067 <a class="code" href="classuserrec.html#o0">invites</a>.push_back(i); -00068 } -00069 -<a name="l00070"></a><a class="code" href="classuserrec.html#a6">00070</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) -00071 { -00072 log(DEBUG,<span class="stringliteral">"Removing invites"</span>); -00073 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o0">invites</a>.size()) -00074 { -00075 <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++) -00076 { -00077 <span class="keywordflow">if</span> (i->channel) { -00078 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00079 { -00080 <a class="code" href="classuserrec.html#o0">invites</a>.erase(i); -00081 <span class="keywordflow">return</span>; -00082 } -00083 } -00084 } -00085 } -00086 } -</pre></div><hr><address style="align: right;"><small>Generated on Mon Apr 5 02:03:52 2004 for InspIRCd by +00043 +<a name="l00044"></a><a class="code" href="classuserrec.html#a3">00044</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">userrec::GetFullRealHost</a>() +00045 { +00046 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host); +00047 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m8">result</a>; +00048 } +00049 +<a name="l00050"></a><a class="code" href="classuserrec.html#a4">00050</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a4">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel) +00051 { +00052 <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++) +00053 { +00054 <span class="keywordflow">if</span> (i->channel) { +00055 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00056 { +00057 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00058 } +00059 } +00060 } +00061 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00062 } +00063 +<a name="l00064"></a><a class="code" href="classuserrec.html#a5">00064</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) +00065 { +00066 <a class="code" href="classInvited.html">Invited</a> i; +00067 strcpy(i.<a class="code" href="classInvited.html#m0">channel</a>,channel); +00068 <a class="code" href="classuserrec.html#o0">invites</a>.push_back(i); +00069 } +00070 +<a name="l00071"></a><a class="code" href="classuserrec.html#a6">00071</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) +00072 { +00073 log(DEBUG,<span class="stringliteral">"Removing invites"</span>); +00074 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o0">invites</a>.size()) +00075 { +00076 <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++) +00077 { +00078 <span class="keywordflow">if</span> (i->channel) { +00079 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00080 { +00081 <a class="code" href="classuserrec.html#o0">invites</a>.erase(i); +00082 <span class="keywordflow">return</span>; +00083 } +00084 } +00085 } +00086 } +00087 } +</pre></div><hr><address style="align: right;"><small>Generated on Tue Apr 6 11:42:30 2004 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-rc3 </small></address> |