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

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

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

revision 501 by michael, Sun Feb 12 20:45:14 2006 UTC revision 502 by michael, Fri Mar 3 19:49:25 2006 UTC
# Line 162  struct Client Line 162  struct Client
162    
163  struct LocalUser  struct LocalUser
164  {  {
165      unsigned int registration;
166      unsigned int cap_client;    /* Client capabilities (from us) */
167      unsigned int cap_active;    /* Active capabilities (to us) */
168    /*    /*
169     * The following fields are allocated only for local clients     * The following fields are allocated only for local clients
170     * (directly connected to *this* server with a socket.     * (directly connected to *this* server with a socket.
# Line 259  struct LocalUser Line 262  struct LocalUser
262  #define STAT_SERVER             0x10  #define STAT_SERVER             0x10
263  #define STAT_CLIENT             0x20  #define STAT_CLIENT             0x20
264    
265    #define REG_NEED_USER 0x1
266    #define REG_NEED_NICK 0x2
267    #define REG_NEED_CAP  0x4
268    #define REG_INIT (REG_NEED_USER|REG_NEED_NICK)
269    
270  #define HasID(x)                ((x)->id[0] != '\0')  #define HasID(x)                ((x)->id[0] != '\0')
271  #define ID(x)                   (HasID(x) ? (x)->id : (x)->name)  #define ID(x)                   (HasID(x) ? (x)->id : (x)->name)
272  #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 308  struct LocalUser Line 316  struct LocalUser
316  #define TS_DOESTS       0x20000000  #define TS_DOESTS       0x20000000
317  #define DoesTS(x)       ((x)->tsinfo == TS_DOESTS)  #define DoesTS(x)       ((x)->tsinfo == TS_DOESTS)
318    
319    #define CAP_MULTI_PREFIX    0x00000001
320    
321    
322  /* housekeeping flags */  /* housekeeping flags */
323  #define FLAGS_PINGSENT      0x00000001 /* Unreplied ping sent                      */  #define FLAGS_PINGSENT      0x00000001 /* Unreplied ping sent                      */

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

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