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-7.2/include/client.h (file contents):
Revision 1012 by michael, Fri Sep 18 10:14:09 2009 UTC vs.
Revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC

# Line 52 | Line 52 | struct LocalUser;
52  
53   struct Server
54   {
55  char by[NICKLEN];       /* who activated this connection     */
55    struct ConfItem *sconf; /* ConfItem connect{} pointer for this server */
56    dlink_list server_list; /* Servers on this server            */
57    dlink_list client_list; /* Clients on this server            */
58 +  char by[NICKLEN];       /* who activated this connection     */
59   };
60  
61   struct SlinkRpl
# Line 79 | Line 79 | struct ZipStats
79  
80   struct ListTask
81   {
82 <  int hash_index;       /* the bucket we are currently in */
82 >  unsigned int hash_index; /* the bucket we are currently in */
83    dlink_list show_mask; /* show these channels..          */
84    dlink_list hide_mask; /* ..and hide these ones          */
85    unsigned int users_min, users_max;
# Line 92 | Line 92 | struct Client
92    dlink_node node;
93    dlink_node lnode;             /* Used for Server->servers/users */
94  
95 <  struct Client *hnext;         /* For client hash table lookups by name */
96 <  struct Client *idhnext;       /* For SID hash table lookups by sid */
97 <
98 <  struct Server*    serv;       /* ...defined, if this is a server */
99 <  struct Client*    servptr;    /* Points to server this Client is on */
100 <  struct Client*    from;       /* == self, if Local Client, *NEVER* NULL! */
95 >  struct LocalUser *localClient;
96 >  struct Client    *hnext;              /* For client hash table lookups by name */
97 >  struct Client    *idhnext;    /* For SID hash table lookups by sid */
98 >  struct Server    *serv;       /* ...defined, if this is a server */
99 >  struct Client    *servptr;    /* Points to server this Client is on */
100 >  struct Client    *from;       /* == self, if Local Client, *NEVER* NULL! */
101 >  struct Whowas    *whowas;     /* Pointers to whowas structs */
102 >  char             *away;
103  
102  struct Whowas*    whowas;     /* Pointers to whowas structs */
104    time_t            lasttime;   /* ...should be only LOCAL clients? --msa */
105    time_t            firsttime;  /* time client was created */
106    time_t            since;      /* last time we parsed something */
107    time_t            tsinfo;     /* TS on the nick, SVINFO on server */
107
108  unsigned int      umodes;     /* opers, normal users subset */
108    uint64_t          flags;      /* client flags */
109  
110 <  unsigned short    hopcount;   /* number of servers to this 0 = local */
111 <  unsigned short    status;     /* Client type */
112 <  unsigned char     handler;    /* Handler index */
110 >  unsigned int      umodes;     /* opers, normal users subset */
111 >  unsigned int      hopcount;   /* number of servers to this 0 = local */
112 >  unsigned int      status;     /* Client type */
113 >  unsigned int      handler;    /* Handler index */
114    unsigned int      serial;     /* used to enforce 1 send per nick */
115 <  char *away;
115 >
116 >  dlink_list        channel;   /* chain of channel pointer blocks */
117  
118    /*
119     * client->name is the unique name for a client nick or host
# Line 151 | Line 152 | struct Client
152     */
153    char              sockhost[HOSTIPLEN + 1]; /* This is the host name from the
154                                                  socket ip address as string */
154  dlink_list        channel;   /* chain of channel pointer blocks */
155
156  struct LocalUser *localClient;
155   };
156  
157   struct LocalUser
# Line 175 | Line 173 | struct LocalUser
173  
174  
175    /* Anti flooding part, all because of lamers... */
176 <  time_t            last_away; /* Away since... */
177 <  time_t            last_join_time;   /* when this client last
178 <                                         joined a channel */
179 <  time_t            last_leave_time;  /* when this client last
176 >  time_t       last_knock;    /* time of last knock */
177 >  time_t       last_away; /* Away since... */
178 >  time_t       last_join_time;   /* when this client last
179 >                                    joined a channel */
180 >  time_t       last_leave_time;  /* when this client last
181                                         * left a channel */
182 <  int               join_leave_count; /* count of JOIN/LEAVE in less than
182 >  int          join_leave_count; /* count of JOIN/LEAVE in less than
183                                           MIN_JOIN_LEAVE_TIME seconds */
184 <  int               oper_warn_count_down; /* warn opers of this possible
184 >  int          oper_warn_count_down; /* warn opers of this possible
185                                            spambot every time this gets to 0 */
186 <  time_t            reject_delay;
187 <  time_t            last_caller_id_time;
188 <  time_t            first_received_message_time;
189 <  time_t            last_nick_change;
186 >  time_t       reject_delay;
187 >  time_t       last_caller_id_time;
188 >  time_t       first_received_message_time;
189 >  time_t       last_nick_change;
190  
191 <  int               received_number_of_privmsgs;
192 <  unsigned int      number_of_nick_changes;
191 >  int          received_number_of_privmsgs;
192 >  unsigned int number_of_nick_changes;
193  
194 <  struct ListTask   *list_task;
194 >  struct ListTask  *list_task;
195    /* Send and receive dbufs .. */
196    struct dbuf_queue buf_sendq;
197    struct dbuf_queue buf_recvq;
# Line 242 | Line 241 | struct LocalUser
241     */
242    int allow_read;       /* how many we're allowed to read in this second */
243    int sent_parsed;      /* how many messages we've parsed in this second */
245  time_t last_knock;    /* time of last knock */
244  
245    char*          response;  /* expected response from client */
246    char*          auth_oper; /* Operator to become if they supply the response.*/

Diff Legend

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