| 181 |
|
* The following fields are allocated only for local clients |
| 182 |
|
* (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... */ |
| 189 |
|
time_t last_away; /* Away since... */ |
| 190 |
|
time_t last_join_time; /* when this client last |
| 273 |
|
#define STAT_SERVER 0x10 |
| 274 |
|
#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') |
| 282 |
|
#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) |
| 328 |
|
#define DoesTS(x) ((x)->tsinfo == TS_DOESTS) |
| 329 |
|
|
| 330 |
|
|
| 331 |
+ |
|
| 332 |
+ |
#define CAP_MULTI_PREFIX 0x00000001 |
| 333 |
+ |
|
| 334 |
|
/* housekeeping flags */ |
| 335 |
|
#define FLAGS_PINGSENT 0x00000001 /* Unreplied ping sent */ |
| 336 |
|
#define FLAGS_DEADSOCKET 0x00000002 /* Local socket is dead--Exiting soon */ |