/[svn]/ircd-hybrid-7.2/include/client.h
ViewVC logotype

Diff of /ircd-hybrid-7.2/include/client.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 502 by michael, Sat Dec 24 14:45:17 2005 UTC revision 503 by michael, Fri Mar 3 19:53:47 2006 UTC
# Line 181  struct LocalUser Line 181  struct LocalUser
181     * The following fields are allocated only for local clients     * The following fields are allocated only for local clients
182     * (directly connected to *this* server with a socket.     * (directly connected to *this* server with a socket.
183     */     */
184      unsigned int registration;
185      unsigned int cap_client;    /* Client capabilities (from us) */
186      unsigned int cap_active;    /* Active capabilities (to us) */
187    
188    /* Anti flooding part, all because of lamers... */    /* Anti flooding part, all because of lamers... */
189    time_t            last_away; /* Away since... */    time_t            last_away; /* Away since... */
190    time_t            last_join_time;   /* when this client last    time_t            last_join_time;   /* when this client last
# Line 269  struct LocalUser Line 273  struct LocalUser
273  #define STAT_SERVER             0x10  #define STAT_SERVER             0x10
274  #define STAT_CLIENT             0x20  #define STAT_CLIENT             0x20
275    
276    #define REG_NEED_USER 0x1
277    #define REG_NEED_NICK 0x2
278    #define REG_NEED_CAP  0x4
279    #define REG_INIT (REG_NEED_USER|REG_NEED_NICK)
280    
281  #define HasID(x)                ((x)->id[0] != '\0')  #define HasID(x)                ((x)->id[0] != '\0')
282  #define ID(x)                   (HasID(x) ? (x)->id : (x)->name)  #define ID(x)                   (HasID(x) ? (x)->id : (x)->name)
283  #define ID_or_name(x,client_p)  ((IsCapable(client_p, CAP_TS6) && HasID(x)) ? (x)->id : (x)->name)  #define ID_or_name(x,client_p)  ((IsCapable(client_p, CAP_TS6) && HasID(x)) ? (x)->id : (x)->name)
# Line 319  struct LocalUser Line 328  struct LocalUser
328  #define DoesTS(x)       ((x)->tsinfo == TS_DOESTS)  #define DoesTS(x)       ((x)->tsinfo == TS_DOESTS)
329    
330    
331    
332    #define CAP_MULTI_PREFIX  0x00000001
333    
334  /* housekeeping flags */  /* housekeeping flags */
335  #define FLAGS_PINGSENT    0x00000001 /* Unreplied ping sent                      */  #define FLAGS_PINGSENT    0x00000001 /* Unreplied ping sent                      */
336  #define FLAGS_DEADSOCKET  0x00000002 /* Local socket is dead--Exiting soon       */  #define FLAGS_DEADSOCKET  0x00000002 /* Local socket is dead--Exiting soon       */

Legend:
Removed from v.502  
changed lines
  Added in v.503

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28