diff options
Diffstat (limited to 'docs/module-doc/classuserrec.html')
-rw-r--r-- | docs/module-doc/classuserrec.html | 673 |
1 files changed, 349 insertions, 324 deletions
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 661dd1b7e..7f5755497 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -1,90 +1,101 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> -<title>userrec class Reference</title> +<title>InspIRCd: userrec class Reference</title> <link href="inspircd.css" rel="stylesheet" type="text/css"> </head><body> -<!-- Generated by Doxygen 1.3-rc3 --> -<center> -<a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> -<hr><h1>userrec Class Reference</h1>Holds all information about a user This class stores all information about a user connected to the irc server. +<!-- Generated by Doxygen 1.3.3 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File 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> <code>#include <<a class="el" href="users_8h-source.html">users.h</a>></code> <p> -Inheritance diagram for userrec:<p><center><img src="classuserrec__inherit__graph.gif" border="0" usemap="#userrec__inherit__map" alt="Inheritance graph"></center> -<map name="userrec__inherit__map"> -<area href="classconnection.html" shape="rect" coords="7,155,76,176" alt=""> -<area href="classExtensible.html" shape="rect" coords="7,86,76,107" alt=""> -<area href="classclassbase.html" shape="rect" coords="8,16,75,38" alt=""> -</map> -<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for userrec:<p><center><img src="classuserrec__coll__graph.gif" border="0" usemap="#userrec__coll__map" alt="Collaboration graph"></center> -<map name="userrec__coll__map"> -<area href="classconnection.html" shape="rect" coords="204,368,273,389" alt=""> -<area href="classucrec.html" shape="rect" coords="216,627,261,648" alt=""> -</map> -<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classuserrec-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +Inherits <a class="el" href="classconnection.html">connection</a>. +<p> +<a href="classuserrec-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> -<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classuserrec.html#a0">userrec</a> ()</td></tr> -<tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classuserrec.html#a1">~userrec</a> ()</td></tr> -<tr><td nowrap align=right valign=top>virtual char * </td><td valign=bottom><a class="el" href="classuserrec.html#a2">GetFullHost</a> ()</td></tr> -<tr><td> </td><td><font size=-1><em>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></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>virtual char * </td><td valign=bottom><a class="el" href="classuserrec.html#a3">GetFullRealHost</a> ()</td></tr> -<tr><td> </td><td><font size=-1><em>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></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classuserrec.html#a4">IsInvited</a> (char *channel)</td></tr> -<tr><td> </td><td><font size=-1><em>Returns true if a user is invited to a channel.</em> <a href="#a4"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classuserrec.html#a5">InviteTo</a> (char *channel)</td></tr> -<tr><td> </td><td><font size=-1><em>Adds a channel to a users invite list (invites them to a channel).</em> <a href="#a5"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classuserrec.html#a6">RemoveInvite</a> (char *channel)</td></tr> -<tr><td> </td><td><font size=-1><em>Removes a channel from a users invite list.</em> <a href="#a6"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classuserrec.html#a7">HasPermission</a> (char *command)</td></tr> -<tr><td> </td><td><font size=-1><em>Returns true or false for if a user can execute a privilaged oper command.</em> <a href="#a7"></a><em></em></font><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a0">userrec</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a1">~userrec</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual char * </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a2">GetFullHost</a> ()</td></tr> + +<tr><td class="mdescLeft"> </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> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual char * </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a3">GetFullRealHost</a> ()</td></tr> + +<tr><td class="mdescLeft"> </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> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a4">IsInvited</a> (char *channel)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if a user is invited to a channel. </em> <a href="#a4"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a5">InviteTo</a> (char *channel)</td></tr> + +<tr><td class="mdescLeft"> </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> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a6">RemoveInvite</a> (char *channel)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a channel from a users invite list. </em> <a href="#a6"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#a7">HasPermission</a> (char *command)</td></tr> + +<tr><td class="mdescLeft"> </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> <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m0">nick</a> [NICKMAX]</td></tr> -<tr><td> </td><td><font size=-1><em>The users nickname.</em> <a href="#m0"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m1">ident</a> [64]</td></tr> -<tr><td> </td><td><font size=-1><em>The users ident reply.</em> <a href="#m1"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m2">dhost</a> [256]</td></tr> -<tr><td> </td><td><font size=-1><em>The host displayed to non-opers (used for cloaking etc).</em> <a href="#m2"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m3">fullname</a> [128]</td></tr> -<tr><td> </td><td><font size=-1><em>The users full name.</em> <a href="#m3"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m4">modes</a> [MAXBUF]</td></tr> -<tr><td> </td><td><font size=-1><em>The user's mode string.</em> <a href="#m4"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top><a class="el" href="classucrec.html">ucrec</a> </td><td valign=bottom><a class="el" href="classuserrec.html#m5">chans</a> [MAXCHANS]</td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m6">server</a> [256]</td></tr> -<tr><td> </td><td><font size=-1><em>The server the user is connected to.</em> <a href="#m6"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m7">awaymsg</a> [512]</td></tr> -<tr><td> </td><td><font size=-1><em>The user's away message.</em> <a href="#m7"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m8">result</a> [256]</td></tr> -<tr><td> </td><td><font size=-1><em>Stores the result of the last GetFullHost or GetRealHost call.</em> <a href="#m8"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classuserrec.html#m9">flood</a></td></tr> -<tr><td> </td><td><font size=-1><em>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="#m9"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>unsigned long </td><td valign=bottom><a class="el" href="classuserrec.html#m10">timeout</a></td></tr> -<tr><td> </td><td><font size=-1><em>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="#m10"></a><em></em></font><br><br></td></tr> -<tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classuserrec.html#m11">oper</a> [NICKMAX]</td></tr> -<tr><td> </td><td><font size=-1><em>The oper type they logged in as, if they are an oper.</em> <a href="#m11"></a><em></em></font><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o0">nick</a> [NICKMAX]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The users nickname. </em> <a href="#o0"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o1">ident</a> [64]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The users ident reply. </em> <a href="#o1"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o2">dhost</a> [256]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The host displayed to non-opers (used for cloaking etc). </em> <a href="#o2"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o3">fullname</a> [128]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The users full name. </em> <a href="#o3"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o4">modes</a> [MAXBUF]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The user's mode string. </em> <a href="#o4"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classucrec.html">ucrec</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o5">chans</a> [MAXCHANS]</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o6">server</a> [256]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The server the user is connected to. </em> <a href="#o6"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o7">awaymsg</a> [512]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The user's away message. </em> <a href="#o7"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o8">result</a> [256]</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Stores the result of the last GetFullHost or GetRealHost call. </em> <a href="#o8"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o9">flood</a></td></tr> + +<tr><td class="mdescLeft"> </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> +<tr><td class="memItemLeft" nowrap align=right valign=top>unsigned long </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o10">timeout</a></td></tr> + +<tr><td class="mdescLeft"> </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> +<tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#o11">oper</a> [NICKMAX]</td></tr> + +<tr><td class="mdescLeft"> </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> <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> -<tr><td nowrap align=right valign=top><a class="el" href="users_8h.html#a6">InvitedList</a> </td><td valign=bottom><a class="el" href="classuserrec.html#o0">invites</a></td></tr> -<tr><td> </td><td><font size=-1><em>A list of channels the user has a pending invite to.</em> <a href="#o0"></a><em></em></font><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="users_8h.html#a6">InvitedList</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classuserrec.html#r0">invites</a></td></tr> + +<tr><td class="mdescLeft"> </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> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> -Holds all information about a user This class stores all information about a user connected to the irc server. +Holds all information about a user This class stores all information about a user connected to the irc server. <p> 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. <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00078">78</a> of file <a class="el" href="users_8h-source.html">users.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="users_8h-source.html#l00089">89</a> of file <a class="el" href="users_8h-source.html">users.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="userrec::userrec"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> userrec::userrec </td> <td class="md" valign="top">( </td> - <td class="mdname1" valign="top" nowrap> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> @@ -102,47 +113,47 @@ Definition at line <a class="el" href="users_8h-source.html#l00078">78</a> of fi <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00013">13</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#l00025">25</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="connection_8h-source.html#l00182">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00186">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00202">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00112">chans</a>, <a class="el" href="connection_8h-source.html#l00190">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00194">connection::cmds_out</a>, <a class="el" href="connection_8h-source.html#l00166">connection::fd</a>, <a class="el" href="users_8h-source.html#l00132">flood</a>, <a class="el" href="connection_8h-source.html#l00198">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00224">connection::idle_lastmsg</a>, <a class="el" href="users_8h-source.html#l00084">invites</a>, <a class="el" href="connection_8h-source.html#l00216">connection::lastping</a>, <a class="el" href="connection_8h-source.html#l00228">connection::nping</a>, <a class="el" href="connection_8h-source.html#l00204">connection::port</a>, <a class="el" href="connection_8h-source.html#l00208">connection::registered</a>, <a class="el" href="connection_8h-source.html#l00220">connection::signon</a>, <a class="el" href="users_8h-source.html#l00138">timeout</a>, and <a class="el" href="channels_8h-source.html#l00197">ucrec::uc_modes</a>. +References <a class="el" href="users_8h-source.html#l00132">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00194">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00198">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00213">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00123">chans</a>, <a class="el" href="connection_8h-source.html#l00202">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00206">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00111">dhost</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="users_8h-source.html#l00143">flood</a>, <a class="el" href="users_8h-source.html#l00115">fullname</a>, <a class="el" href="connection_8h-source.html#l00210">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00182">connection::host</a>, <a class="el" href="users_8h-source.html#l00106">ident</a>, <a class="el" href="connection_8h-source.html#l00236">connection::idle_lastmsg</a>, <a class="el" href="connection_8h-source.html#l00190">connection::inbuf</a>, <a class="el" href="users_8h-source.html#l00095">invites</a>, <a class="el" href="connection_8h-source.html#l00186">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00228">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00121">modes</a>, <a class="el" href="users_8h-source.html#l00102">nick</a>, <a class="el" href="connection_8h-source.html#l00240">connection::nping</a>, <a class="el" href="connection_8h-source.html#l00216">connection::port</a>, <a class="el" href="connection_8h-source.html#l00220">connection::registered</a>, <a class="el" href="users_8h-source.html#l00137">result</a>, <a class="el" href="users_8h-source.html#l00127">server</a>, <a class="el" href="connection_8h-source.html#l00232">connection::signon</a>, <a class="el" href="users_8h-source.html#l00149">timeout</a>, and <a class="el" href="channels_8h-source.html#l00208">ucrec::uc_modes</a>. <p> -<div class="fragment"><pre>00014 { -00015 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> -00016 strcpy(nick,<span class="stringliteral">""</span>); -00017 strcpy(ip,<span class="stringliteral">"127.0.0.1"</span>); -00018 <a class="code" href="classuserrec.html#m10">timeout</a> = 0; -00019 strcpy(ident,<span class="stringliteral">""</span>); -00020 strcpy(host,<span class="stringliteral">""</span>); -00021 strcpy(dhost,<span class="stringliteral">""</span>); -00022 strcpy(fullname,<span class="stringliteral">""</span>); -00023 strcpy(modes,<span class="stringliteral">""</span>); -00024 strcpy(inbuf,<span class="stringliteral">""</span>); -00025 strcpy(server,<span class="stringliteral">""</span>); -00026 strcpy(awaymsg,<span class="stringliteral">""</span>); -00027 <a class="code" href="classconnection.html#m0">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#m10">registered</a> = 0; -00028 <a class="code" href="classuserrec.html#m9">flood</a> = <a class="code" href="classconnection.html#m9">port</a> = <a class="code" href="classconnection.html#m4">bytes_in</a> = <a class="code" href="classconnection.html#m5">bytes_out</a> = <a class="code" href="classconnection.html#m6">cmds_in</a> = <a class="code" href="classconnection.html#m7">cmds_out</a> = 0; -00029 <a class="code" href="classconnection.html#m8">haspassed</a> = <span class="keyword">false</span>; -00030 strcpy(result,<span class="stringliteral">""</span>); -00031 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) -00032 { -00033 this-><a class="code" href="classuserrec.html#m5">chans</a>[i].<a class="code" href="classucrec.html#m1">channel</a> = NULL; -00034 this-><a class="code" href="classuserrec.html#m5">chans</a>[i].<a class="code" href="classucrec.html#m0">uc_modes</a> = 0; -00035 } -00036 <a class="code" href="classuserrec.html#o0">invites</a>.clear(); -00037 } +<div class="fragment"><pre>00026 { +00027 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> +00028 strcpy(nick,<span class="stringliteral">""</span>); +00029 strcpy(ip,<span class="stringliteral">"127.0.0.1"</span>); +00030 <a class="code" href="classuserrec.html#o10">timeout</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="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; +00040 <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; +00041 <a class="code" href="classconnection.html#o8">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 < MAXCHANS; i++) +00044 { +00045 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL; +00046 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0; +00047 } +00048 <a class="code" href="classuserrec.html#r0">invites</a>.clear(); +00049 } </pre></div> </td> </tr> </table> <a name="a1" doxytag="userrec::~userrec"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> virtual userrec::~userrec </td> + <td class="md" nowrap valign="top"> virtual userrec::~<a class="el" href="classuserrec.html">userrec</a> </td> <td class="md" valign="top">( </td> - <td class="mdname1" valign="top" nowrap> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> @@ -160,23 +171,23 @@ References <a class="el" href="connection_8h-source.html#l00182">connection::byt <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00149">149</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +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>. <p> -<div class="fragment"><pre>00149 { } +<div class="fragment"><pre>00160 { } </pre></div> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a2" doxytag="userrec::GetFullHost"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> char * userrec::GetFullHost </td> <td class="md" valign="top">( </td> - <td class="mdname1" valign="top" nowrap> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> @@ -192,31 +203,31 @@ Definition at line <a class="el" href="users_8h-source.html#l00149">149</a> of f <td> <p> -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. +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. <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00041">41</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#l00053">53</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00126">result</a>. +References <a class="el" href="users_8h-source.html#l00111">dhost</a>, <a class="el" href="users_8h-source.html#l00106">ident</a>, <a class="el" href="users_8h-source.html#l00102">nick</a>, and <a class="el" href="users_8h-source.html#l00137">result</a>. <p> -<div class="fragment"><pre>00042 { -00043 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost); -00044 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m8">result</a>; -00045 } +<div class="fragment"><pre>00054 { +00055 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost); +00056 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; +00057 } </pre></div> </td> </tr> </table> <a name="a3" doxytag="userrec::GetFullRealHost"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> char * userrec::GetFullRealHost </td> <td class="md" valign="top">( </td> - <td class="mdname1" valign="top" nowrap> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> @@ -232,32 +243,32 @@ References <a class="el" href="users_8h-source.html#l00126">result</a>. <td> <p> -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. +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. <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#l00048">48</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#l00060">60</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00126">result</a>. +References <a class="el" href="connection_8h-source.html#l00182">connection::host</a>, <a class="el" href="users_8h-source.html#l00106">ident</a>, <a class="el" href="users_8h-source.html#l00102">nick</a>, and <a class="el" href="users_8h-source.html#l00137">result</a>. <p> -<div class="fragment"><pre>00049 { -00050 sprintf(result,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host); -00051 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#m8">result</a>; -00052 } +<div class="fragment"><pre>00061 { +00062 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host); +00063 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; +00064 } </pre></div> </td> </tr> </table> <a name="a7" doxytag="userrec::HasPermission"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool userrec::HasPermission </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> - <td class="mdname1" valign="top" nowrap> <em>command</em> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> <em>command</em> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> @@ -273,76 +284,78 @@ References <a class="el" href="users_8h-source.html#l00126">result</a>. <td> <p> -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#m11">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#l00097">97</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -<div class="fragment"><pre>00098 { -00099 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00100 <span class="keywordtype">char</span>* myclass; -00101 <span class="keywordtype">char</span>* mycmd; -00102 <span class="keywordtype">char</span>* savept; -00103 <span class="keywordtype">char</span>* savept2; -00104 -00105 <span class="comment">// are they even an oper at all?</span> -00106 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) -00107 { -00108 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this->nick); -00109 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&config_f); j++) -00110 { -00111 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&config_f); -00112 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) -00113 { -00114 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this->nick,this->oper); -00115 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&config_f); -00116 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); -00117 <span class="keywordflow">while</span> (myclass) -00118 { -00119 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); -00120 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&config_f); k++) -00121 { -00122 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&config_f); -00123 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) -00124 { -00125 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&config_f); -00126 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); -00127 -00128 -00129 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); -00130 <span class="keywordflow">while</span> (mycmd) -00131 { -00132 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) -00133 { -00134 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); -00135 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00136 } -00137 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); -00138 } -00139 } -00140 } -00141 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); -00142 } -00143 } -00144 } -00145 } -00146 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00147 } +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#l00109">109</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="channels_8cpp-source.html#l00100">config_f</a>, and <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>. +<p> +<div class="fragment"><pre>00110 { +00111 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +00112 <span class="keywordtype">char</span>* myclass; +00113 <span class="keywordtype">char</span>* mycmd; +00114 <span class="keywordtype">char</span>* savept; +00115 <span class="keywordtype">char</span>* savept2; +00116 +00117 <span class="comment">// are they even an oper at all?</span> +00118 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) +00119 { +00120 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this->nick); +00121 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&config_f); j++) +00122 { +00123 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&config_f); +00124 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) +00125 { +00126 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this->nick,this->oper); +00127 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&config_f); +00128 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); +00129 <span class="keywordflow">while</span> (myclass) +00130 { +00131 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); +00132 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&config_f); k++) +00133 { +00134 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&config_f); +00135 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) +00136 { +00137 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&config_f); +00138 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); +00139 +00140 +00141 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); +00142 <span class="keywordflow">while</span> (mycmd) +00143 { +00144 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) +00145 { +00146 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); +00147 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00148 } +00149 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); +00150 } +00151 } +00152 } +00153 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); +00154 } +00155 } +00156 } +00157 } +00158 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00159 } </pre></div> </td> </tr> </table> <a name="a5" doxytag="userrec::InviteTo"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void userrec::InviteTo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> - <td class="mdname1" valign="top" nowrap> <em>channel</em> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> <em>channel</em> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> @@ -358,33 +371,33 @@ Definition at line <a class="el" href="users_8cpp-source.html#l00097">97</a> of <td> <p> -Adds a channel to a users invite list (invites them to a channel). +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#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#l00080">80</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00028">Invited::channel</a>, and <a class="el" href="users_8h-source.html#l00084">invites</a>. +References <a class="el" href="users_8h-source.html#l00039">Invited::channel</a>, and <a class="el" href="users_8h-source.html#l00095">invites</a>. <p> -<div class="fragment"><pre>00069 { -00070 <a class="code" href="classInvited.html">Invited</a> i; -00071 strcpy(i.<a class="code" href="classInvited.html#m0">channel</a>,channel); -00072 <a class="code" href="classuserrec.html#o0">invites</a>.push_back(i); -00073 } +<div class="fragment"><pre>00081 { +00082 <a class="code" href="classInvited.html">Invited</a> i; +00083 strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX); +00084 <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i); +00085 } </pre></div> </td> </tr> </table> <a name="a4" doxytag="userrec::IsInvited"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool userrec::IsInvited </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> - <td class="mdname1" valign="top" nowrap> <em>channel</em> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> <em>channel</em> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> @@ -400,40 +413,40 @@ References <a class="el" href="users_8h-source.html#l00028">Invited::channel</a> <td> <p> -Returns true if a user is invited to a channel. +Returns true if a user is invited to a channel. <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00054">54</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#l00066">66</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00084">invites</a>. +References <a class="el" href="users_8h-source.html#l00095">invites</a>. <p> -<div class="fragment"><pre>00055 { -00056 <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++) -00057 { -00058 <span class="keywordflow">if</span> (i->channel) { -00059 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00060 { -00061 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00062 } -00063 } -00064 } -00065 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00066 } +<div class="fragment"><pre>00067 { +00068 <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++) +00069 { +00070 <span class="keywordflow">if</span> (i->channel) { +00071 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00072 { +00073 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00074 } +00075 } +00076 } +00077 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00078 } </pre></div> </td> </tr> </table> <a name="a6" doxytag="userrec::RemoveInvite"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void userrec::RemoveInvite </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> - <td class="mdname1" valign="top" nowrap> <em>channel</em> </td> - <td class="md" valign="top">) </td> + <td class="mdname1" valign="top" nowrap> <em>channel</em> </td> + <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> @@ -449,45 +462,45 @@ References <a class="el" href="users_8h-source.html#l00084">invites</a>. <td> <p> -Removes a channel from a users invite list. +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#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#l00084">invites</a>. -<p> -<div class="fragment"><pre>00076 { -00077 log(DEBUG,<span class="stringliteral">"Removing invites"</span>); -00078 <span class="keywordflow">if</span> (channel) -00079 { -00080 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#o0">invites</a>.size()) -00081 { -00082 <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++) -00083 { -00084 <span class="keywordflow">if</span> (i->channel) -00085 { -00086 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00087 { -00088 <a class="code" href="classuserrec.html#o0">invites</a>.erase(i); -00089 <span class="keywordflow">return</span>; -00090 } -00091 } -00092 } -00093 } -00094 } -00095 } +Definition at line <a class="el" href="users_8cpp-source.html#l00087">87</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#l00095">invites</a>. +<p> +<div class="fragment"><pre>00088 { +00089 log(DEBUG,<span class="stringliteral">"Removing invites"</span>); +00090 <span class="keywordflow">if</span> (channel) +00091 { +00092 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size()) +00093 { +00094 <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++) +00095 { +00096 <span class="keywordflow">if</span> (i->channel) +00097 { +00098 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00099 { +00100 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i); +00101 <span class="keywordflow">return</span>; +00102 } +00103 } +00104 } +00105 } +00106 } +00107 } </pre></div> </td> </tr> </table> <hr><h2>Member Data Documentation</h2> -<a name="m7" doxytag="userrec::awaymsg"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o7" doxytag="userrec::awaymsg"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::awaymsg[512] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o7">userrec::awaymsg</a>[512] </table> </td> </tr> @@ -500,20 +513,22 @@ References <a class="el" href="users_8h-source.html#l00084">invites</a>. <td> <p> -The user's away message. +The user's away message. <p> If this string is empty, the user is not marked as away. <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>. </td> +Definition at line <a class="el" href="users_8h-source.html#l00132">132</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#l00025">userrec()</a>. </td> </tr> </table> -<a name="m5" doxytag="userrec::chans"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o5" doxytag="userrec::chans"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> <a class="el" href="classucrec.html">ucrec</a> userrec::chans[MAXCHANS] + <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] </table> </td> </tr> @@ -528,18 +543,18 @@ Definition at line <a class="el" href="users_8h-source.html#l00121">121</a> of f <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00112">112</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +Definition at line <a class="el" href="users_8h-source.html#l00123">123</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#l00013">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m2" doxytag="userrec::dhost"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o2" doxytag="userrec::dhost"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::dhost[256] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o2">userrec::dhost</a>[256] </table> </td> </tr> @@ -552,20 +567,22 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00013">userrec()</a>. <td> <p> -The host displayed to non-opers (used for cloaking etc). +The host displayed to non-opers (used for cloaking etc). +<p> +This usually matches the value of <a class="el" href="classconnection.html#o1">userrec::host</a>. <p> -This usually matches the value of <a class="el" href="classconnection.html#m1">userrec::host</a>. +Definition at line <a class="el" href="users_8h-source.html#l00111">111</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Definition at line <a class="el" href="users_8h-source.html#l00100">100</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m9" doxytag="userrec::flood"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o9" doxytag="userrec::flood"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> int userrec::flood + <td class="md" nowrap valign="top"> int <a class="el" href="classuserrec.html#o9">userrec::flood</a> </table> </td> </tr> @@ -578,22 +595,22 @@ Definition at line <a class="el" href="users_8h-source.html#l00100">100</a> of f <td> <p> -Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood. +Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood. <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00132">132</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +Definition at line <a class="el" href="users_8h-source.html#l00143">143</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#l00013">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m3" doxytag="userrec::fullname"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o3" doxytag="userrec::fullname"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::fullname[128] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o3">userrec::fullname</a>[128] </table> </td> </tr> @@ -606,20 +623,22 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00013">userrec()</a>. <td> <p> -The users full name. +The users full name. <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00104">104</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> +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>. +<p> +Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m1" doxytag="userrec::ident"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o1" doxytag="userrec::ident"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::ident[64] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o1">userrec::ident</a>[64] </table> </td> </tr> @@ -632,20 +651,22 @@ Definition at line <a class="el" href="users_8h-source.html#l00104">104</a> of f <td> <p> -The users ident reply. +The users ident reply. <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00095">95</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> +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>. +<p> +Referenced by <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00060">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="o0" doxytag="userrec::invites"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="r0" doxytag="userrec::invites"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <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::invites<code> [private]</code> + <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> </table> </td> </tr> @@ -658,22 +679,22 @@ Definition at line <a class="el" href="users_8h-source.html#l00095">95</a> of fi <td> <p> -A list of channels the user has a pending invite to. +A list of channels the user has a pending invite to. <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00084">84</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +Definition at line <a class="el" href="users_8h-source.html#l00095">95</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#l00068">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00054">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00075">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00013">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00080">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00066">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00087">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m4" doxytag="userrec::modes"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o4" doxytag="userrec::modes"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::modes[MAXBUF] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o4">userrec::modes</a>[MAXBUF] </table> </td> </tr> @@ -686,20 +707,22 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00068">InviteTo()</a>, <td> <p> -The user's mode string. +The user's mode string. <p> This may contain any of the following RFC characters: o, w, s, i Your module may define other mode characters as it sees fit. <p> -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>. </td> +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="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m0" doxytag="userrec::nick"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o0" doxytag="userrec::nick"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::nick[NICKMAX] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o0">userrec::nick</a>[NICKMAX] </table> </td> </tr> @@ -712,22 +735,22 @@ Definition at line <a class="el" href="users_8h-source.html#l00110">110</a> of f <td> <p> -The users nickname. +The users nickname. <p> An invalid nickname indicates an unregistered connection prior to the NICK command. <p> -Definition at line <a class="el" href="users_8h-source.html#l00091">91</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +Definition at line <a class="el" href="users_8h-source.html#l00102">102</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#l00373">Server::QuitUser()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00663">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00060">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00386">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m11" doxytag="userrec::oper"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o11" doxytag="userrec::oper"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::oper[NICKMAX] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o11">userrec::oper</a>[NICKMAX] </table> </td> </tr> @@ -740,20 +763,20 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00373">Server::QuitU <td> <p> -The oper type they logged in as, if they are an oper. +The oper type they logged in as, if they are an oper. <p> 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. <p> -Definition at line <a class="el" href="users_8h-source.html#l00145">145</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> +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>. </td> </tr> </table> -<a name="m8" doxytag="userrec::result"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o8" doxytag="userrec::result"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::result[256] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o8">userrec::result</a>[256] </table> </td> </tr> @@ -766,22 +789,22 @@ Definition at line <a class="el" href="users_8h-source.html#l00145">145</a> of f <td> <p> -Stores the result of the last GetFullHost or GetRealHost call. +Stores the result of the last GetFullHost or GetRealHost call. <p> 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#l00126">126</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +Definition at line <a class="el" href="users_8h-source.html#l00137">137</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#l00041">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00048">GetFullRealHost()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00060">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m6" doxytag="userrec::server"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o6" doxytag="userrec::server"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> char userrec::server[256] + <td class="md" nowrap valign="top"> char <a class="el" href="classuserrec.html#o6">userrec::server</a>[256] </table> </td> </tr> @@ -794,20 +817,22 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00041">GetFullHost()</ <td> <p> -The server the user is connected to. +The server the user is connected to. <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00116">116</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> +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>. +<p> +Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> </tr> </table> -<a name="m10" doxytag="userrec::timeout"></a><p> -<table width="100%" cellpadding="2" cellspacing="0" border="0"> +<a name="o10" doxytag="userrec::timeout"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> - <td class="md"> + <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> unsigned long userrec::timeout + <td class="md" nowrap valign="top"> unsigned long <a class="el" href="classuserrec.html#o10">userrec::timeout</a> </table> </td> </tr> @@ -820,20 +845,20 @@ Definition at line <a class="el" href="users_8h-source.html#l00116">116</a> of f <td> <p> -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. +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. <p> <p> -Definition at line <a class="el" href="users_8h-source.html#l00138">138</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +Definition at line <a class="el" href="users_8h-source.html#l00149">149</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#l00013">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</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><address style="align: right;"><small>Generated on Sun May 2 00:09:45 2004 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 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> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.3 </small></address> </body> </html> |