| 35 |
|
#include "dbuf.h" |
| 36 |
|
#include "channel.h" |
| 37 |
|
|
| 38 |
– |
#define HOSTIPLEN 45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */ |
| 39 |
– |
#define PASSWDLEN 20 |
| 40 |
– |
#define IDLEN 12 /* this is the maximum length, not the actual |
| 41 |
– |
generated length; DO NOT CHANGE! */ |
| 42 |
– |
|
| 38 |
|
|
| 39 |
|
/*! \brief addr_mask_type enumeration */ |
| 40 |
|
enum addr_mask_type |
| 101 |
|
MIN_JOIN_LEAVE_TIME seconds */ |
| 102 |
|
int oper_warn_count_down; /**< warn opers of this possible |
| 103 |
|
spambot every time this gets to 0 */ |
| 109 |
– |
time_t reject_delay; |
| 104 |
|
time_t last_caller_id_time; |
| 105 |
|
time_t first_received_message_time; |
| 106 |
|
time_t last_nick_change; |
| 107 |
|
time_t last_privmsg; /**< Last time we got a PRIVMSG */ |
| 108 |
+ |
time_t last_away; /**< Away since... */ |
| 109 |
|
|
| 110 |
|
int received_number_of_privmsgs; |
| 111 |
|
unsigned int number_of_nick_changes; |
| 156 |
|
struct Server *serv; /**< ...defined, if this is a server */ |
| 157 |
|
struct Client *servptr; /**< Points to server this Client is on */ |
| 158 |
|
struct Client *from; /**< == self, if Local Client, *NEVER* NULL! */ |
| 164 |
– |
char *away; /**< Client's AWAY message. Can be set/unset via AWAY command */ |
| 159 |
|
|
| 160 |
|
time_t tsinfo; /**< TS on the nick, SVINFO on server */ |
| 167 |
– |
time_t servicestamp; /**< Last time client has been identified for its nick */ |
| 161 |
|
|
| 162 |
|
unsigned int flags; /**< client flags */ |
| 163 |
|
unsigned int umodes; /**< opers, normal users subset */ |
| 168 |
|
dlink_list whowas; |
| 169 |
|
dlink_list channel; /**< chain of channel pointer blocks */ |
| 170 |
|
|
| 171 |
+ |
char away[AWAYLEN + 1]; /**< Client's AWAY message. Can be set/unset via AWAY command */ |
| 172 |
|
char name[HOSTLEN + 1]; /**< unique name for a client nick or host */ |
| 173 |
+ |
char svid[HOSTLEN + 1]; /**< Services ID. XXX: Going with HOSTLEN for now. NICKLEN might be too small |
| 174 |
+ |
if dealing with timestamps */ |
| 175 |
|
char id[IDLEN + 1]; /**< client ID, unique ID per client */ |
| 180 |
– |
|
| 176 |
|
/* |
| 177 |
|
* client->username is the username from ident or the USER message, |
| 178 |
|
* If the client is idented the USER message is ignored, otherwise |
| 437 |
|
#define SetSendqBlocked(x) ((x)->flags |= FLAGS_BLOCKED) |
| 438 |
|
#define ClearSendqBlocked(x) ((x)->flags &= ~FLAGS_BLOCKED) |
| 439 |
|
|
| 445 |
– |
#define IsCaptured(x) ((x)->handler == DUMMY_HANDLER) |
| 446 |
– |
#define SetCaptured(x) ((x)->handler = DUMMY_HANDLER) |
| 447 |
– |
#define ClearCaptured(x) ((x)->handler = CLIENT_HANDLER) |
| 448 |
– |
|
| 440 |
|
|
| 441 |
|
extern struct Client me; |
| 442 |
|
extern dlink_list listing_client_list; |