ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/client.h
(Generate patch)

Comparing ircd-hybrid-8/include/client.h (file contents):
Revision 1468 by michael, Sat Jul 21 20:03:29 2012 UTC vs.
Revision 1559 by michael, Sun Oct 14 01:38:28 2012 UTC

# Line 35 | Line 35
35   #include "dbuf.h"
36   #include "channel.h"
37  
38 #define HOSTIPLEN       45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */
39 #define PASSWDLEN       20
40 #define IDLEN           12 /* this is the maximum length, not the actual
41                              generated length; DO NOT CHANGE! */
42
38  
39   /*! \brief addr_mask_type enumeration */
40   enum addr_mask_type
# Line 106 | Line 101 | struct LocalUser
101                                           MIN_JOIN_LEAVE_TIME seconds */
102    int          oper_warn_count_down; /**< warn opers of this possible
103                                            spambot every time this gets to 0 */
109  time_t       reject_delay;
104    time_t       last_caller_id_time;
105    time_t       first_received_message_time;
106    time_t       last_nick_change;
107    time_t       last_privmsg; /**< Last time we got a PRIVMSG */
108 +  time_t       last_away; /**< Away since... */
109  
110    int          received_number_of_privmsgs;
111    unsigned int number_of_nick_changes;
# Line 161 | Line 156 | struct Client
156    struct Server    *serv;       /**< ...defined, if this is a server */
157    struct Client    *servptr;    /**< Points to server this Client is on */
158    struct Client    *from;       /**< == self, if Local Client, *NEVER* NULL! */
164  char             *away;       /**< Client's AWAY message. Can be set/unset via AWAY command */
159  
160    time_t            tsinfo;     /**< TS on the nick, SVINFO on server */
167  time_t            servicestamp; /**< Last time client has been identified for its nick */
161  
162    unsigned int      flags;      /**< client flags */
163    unsigned int      umodes;     /**< opers, normal users subset */
# Line 175 | Line 168 | struct Client
168    dlink_list        whowas;
169    dlink_list        channel;   /**< chain of channel pointer blocks */
170  
171 +  char away[AWAYLEN + 1]; /**< Client's AWAY message. Can be set/unset via AWAY command */
172    char name[HOSTLEN + 1]; /**< unique name for a client nick or host */
173 +  char svid[HOSTLEN + 1]; /**< Services ID. XXX: Going with HOSTLEN for now. NICKLEN might be too small
174 +                                if dealing with timestamps */
175    char id[IDLEN + 1];       /**< client ID, unique ID per client */
180
176    /*
177     * client->username is the username from ident or the USER message,
178     * If the client is idented the USER message is ignored, otherwise
# Line 442 | Line 437 | struct Client
437   #define SetSendqBlocked(x)      ((x)->flags |= FLAGS_BLOCKED)
438   #define ClearSendqBlocked(x)    ((x)->flags &= ~FLAGS_BLOCKED)
439  
445 #define IsCaptured(x)           ((x)->handler == DUMMY_HANDLER)
446 #define SetCaptured(x)          ((x)->handler = DUMMY_HANDLER)
447 #define ClearCaptured(x)        ((x)->handler = CLIENT_HANDLER)
448
440  
441   extern struct Client me;
442   extern dlink_list listing_client_list;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)