156 |
|
* gcos field in /etc/passwd but anything can go here. |
157 |
|
*/ |
158 |
|
char info[REALLEN + 1]; /* Free form additional client info */ |
159 |
+ |
char client_host[HOSTLEN + 1]; |
160 |
+ |
char client_server[HOSTLEN + 1]; |
161 |
|
|
162 |
|
/* client->sockhost contains the ip address gotten from the socket as a |
163 |
|
* string, this field should be considered read-only once the connection |
369 |
|
|
370 |
|
|
371 |
|
/* umodes, settable flags */ |
372 |
< |
#define UMODE_SERVNOTICE 0x00001 /* server notices such as kill */ |
373 |
< |
#define UMODE_CCONN 0x00002 /* Client Connections */ |
374 |
< |
#define UMODE_REJ 0x00004 /* Bot Rejections */ |
375 |
< |
#define UMODE_SKILL 0x00008 /* Server Killed */ |
376 |
< |
#define UMODE_FULL 0x00010 /* Full messages */ |
377 |
< |
#define UMODE_SPY 0x00020 /* see STATS / LINKS */ |
378 |
< |
#define UMODE_DEBUG 0x00040 /* 'debugging' info */ |
379 |
< |
#define UMODE_NCHANGE 0x00080 /* Nick change notice */ |
380 |
< |
#define UMODE_WALLOP 0x00100 /* send wallops to them */ |
381 |
< |
#define UMODE_OPERWALL 0x00200 /* Operwalls */ |
382 |
< |
#define UMODE_INVISIBLE 0x00400 /* makes user invisible */ |
383 |
< |
#define UMODE_BOTS 0x00800 /* shows bots */ |
384 |
< |
#define UMODE_EXTERNAL 0x01000 /* show servers introduced and splitting */ |
385 |
< |
#define UMODE_CALLERID 0x02000 /* block unless caller id's */ |
386 |
< |
#define UMODE_SOFTCALLERID 0x04000 /* block unless on common channel */ |
387 |
< |
#define UMODE_UNAUTH 0x08000 /* show unauth connects here */ |
388 |
< |
#define UMODE_LOCOPS 0x10000 /* show locops */ |
389 |
< |
#define UMODE_DEAF 0x20000 /* don't receive channel messages */ |
372 |
> |
#define UMODE_SERVNOTICE 0x00000001 /* server notices such as kill */ |
373 |
> |
#define UMODE_CCONN 0x00000002 /* Client Connections */ |
374 |
> |
#define UMODE_REJ 0x00000004 /* Bot Rejections */ |
375 |
> |
#define UMODE_SKILL 0x00000008 /* Server Killed */ |
376 |
> |
#define UMODE_FULL 0x00000010 /* Full messages */ |
377 |
> |
#define UMODE_SPY 0x00000020 /* see STATS / LINKS */ |
378 |
> |
#define UMODE_DEBUG 0x00000040 /* 'debugging' info */ |
379 |
> |
#define UMODE_NCHANGE 0x00000080 /* Nick change notice */ |
380 |
> |
#define UMODE_WALLOP 0x00000100 /* send wallops to them */ |
381 |
> |
#define UMODE_OPERWALL 0x00000200 /* Operwalls */ |
382 |
> |
#define UMODE_INVISIBLE 0x00000400 /* makes user invisible */ |
383 |
> |
#define UMODE_BOTS 0x00000800 /* shows bots */ |
384 |
> |
#define UMODE_EXTERNAL 0x00001000 /* show servers introduced and splitting */ |
385 |
> |
#define UMODE_CALLERID 0x00002000 /* block unless caller id's */ |
386 |
> |
#define UMODE_SOFTCALLERID 0x00004000 /* block unless on common channel */ |
387 |
> |
#define UMODE_UNAUTH 0x00008000 /* show unauth connects here */ |
388 |
> |
#define UMODE_LOCOPS 0x00010000 /* show locops */ |
389 |
> |
#define UMODE_DEAF 0x00020000 /* don't receive channel messages */ |
390 |
> |
#define UMODE_CCONN_FULL 0x00040000 /* add unused fields to connection monitoring */ |
391 |
|
|
392 |
|
/* user information flags, only settable by remote mode or local oper */ |
393 |
< |
#define UMODE_OPER 0x40000 /* Operator */ |
394 |
< |
#define UMODE_ADMIN 0x80000 /* Admin on server */ |
393 |
> |
#define UMODE_OPER 0x40000000 /* Operator */ |
394 |
> |
#define UMODE_ADMIN 0x80000000 /* Admin on server */ |
395 |
> |
|
396 |
|
#define UMODE_ALL UMODE_SERVNOTICE |
397 |
|
|
398 |
|
#define SEND_UMODES (UMODE_INVISIBLE | UMODE_OPER | UMODE_WALLOP | \ |