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/trunk/include/client.h (file contents):
Revision 4587 by michael, Mon Aug 25 09:45:11 2014 UTC vs.
Revision 4588 by michael, Tue Aug 26 15:59:07 2014 UTC

# Line 82 | Line 82 | struct MaskItem;
82                                   (x)->handler = HasUMode(x, UMODE_OPER) ? \
83                                   OPER_HANDLER : CLIENT_HANDLER; }
84  
85 < #define MyConnect(x)            ((x)->localClient != NULL)
85 > #define MyConnect(x)            ((x)->connection != NULL)
86   #define MyClient(x)             (MyConnect(x) && IsClient(x))
87  
88   /*
# Line 99 | Line 99 | struct MaskItem;
99   #define CAP_AWAY_NOTIFY   0x00000002U
100   #define CAP_UHNAMES       0x00000004U
101  
102 < #define HasCap(x, y) ((x)->localClient->cap_active & (y))
102 > #define HasCap(x, y) ((x)->connection->cap_active & (y))
103  
104  
105   /* housekeeping flags */
# Line 202 | Line 202 | struct MaskItem;
202   #define OPER_FLAG_UNXLINE        0x00400000U  /**< Oper can use UNXLINE command */
203  
204  
205 < #define HasOFlag(x, y) (MyConnect(x) ? (x)->localClient->operflags & (y) : 0)
206 < #define AddOFlag(x, y) ((x)->localClient->operflags |=  (y))
207 < #define DelOFlag(x, y) ((x)->localClient->operflags &= ~(y))
208 < #define ClrOFlag(x)    ((x)->localClient->operflags = 0)
205 > #define HasOFlag(x, y) (MyConnect(x) ? (x)->connection->operflags & (y) : 0)
206 > #define AddOFlag(x, y) ((x)->connection->operflags |=  (y))
207 > #define DelOFlag(x, y) ((x)->connection->operflags &= ~(y))
208 > #define ClrOFlag(x)    ((x)->connection->operflags = 0)
209  
210  
211  
# Line 378 | Line 378 | struct Client
378    dlink_node node;
379    dlink_node lnode;             /**< Used for Server->servers/users */
380  
381 <  struct Connection *localClient;
381 >  struct Connection *connection;
382    struct Client    *hnext;      /**< For client hash table lookups by name */
383    struct Client    *idhnext;    /**< For SID hash table lookups by sid */
384    struct Server    *serv;       /**< ...defined, if this is a server */

Diff Legend

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