fix whois :)
This commit is contained in:
parent
3318e109f9
commit
af7aaa8444
4 changed files with 11 additions and 2 deletions
|
@ -449,7 +449,7 @@ struct exit_client_hook
|
||||||
/* user information flags, only settable by remote mode or local oper */
|
/* user information flags, only settable by remote mode or local oper */
|
||||||
#define UMODE_OPER 0x100000 /* Operator */
|
#define UMODE_OPER 0x100000 /* Operator */
|
||||||
#define UMODE_ADMIN 0x200000 /* Admin on server */
|
#define UMODE_ADMIN 0x200000 /* Admin on server */
|
||||||
#define UMODE_SSLCLIENT 0x400000 /* using SSL */
|
#define UMODE_SSLCLIENT 0x1000000 /* using SSL */
|
||||||
|
|
||||||
#define UMODE_ALL UMODE_SERVNOTICE
|
#define UMODE_ALL UMODE_SERVNOTICE
|
||||||
|
|
||||||
|
@ -531,6 +531,9 @@ struct exit_client_hook
|
||||||
#define IsInvisible(x) ((x)->umodes & UMODE_INVISIBLE)
|
#define IsInvisible(x) ((x)->umodes & UMODE_INVISIBLE)
|
||||||
#define SetInvisible(x) ((x)->umodes |= UMODE_INVISIBLE)
|
#define SetInvisible(x) ((x)->umodes |= UMODE_INVISIBLE)
|
||||||
#define ClearInvisible(x) ((x)->umodes &= ~UMODE_INVISIBLE)
|
#define ClearInvisible(x) ((x)->umodes &= ~UMODE_INVISIBLE)
|
||||||
|
#define IsSSLClient(x) ((x)->umodes & UMODE_SSLCLIENT)
|
||||||
|
#define SetSSLClient(x) ((x)->umodes |= UMODE_SSLCLIENT)
|
||||||
|
#define ClearSSLClient(x) ((x)->umodes &= ~UMODE_SSLCLIENT)
|
||||||
#define SendWallops(x) ((x)->umodes & UMODE_WALLOP)
|
#define SendWallops(x) ((x)->umodes & UMODE_WALLOP)
|
||||||
#define SendLocops(x) ((x)->umodes & UMODE_LOCOPS)
|
#define SendLocops(x) ((x)->umodes & UMODE_LOCOPS)
|
||||||
#define SendServNotice(x) ((x)->umodes & UMODE_SERVNOTICE)
|
#define SendServNotice(x) ((x)->umodes & UMODE_SERVNOTICE)
|
||||||
|
|
|
@ -307,6 +307,8 @@ extern const char *form_str(int);
|
||||||
|
|
||||||
#define ERR_HELPNOTFOUND 524
|
#define ERR_HELPNOTFOUND 524
|
||||||
|
|
||||||
|
#define RPL_WHOISSECURE 671 /* Unreal3.2 --nenolod */
|
||||||
|
|
||||||
#define RPL_MODLIST 702
|
#define RPL_MODLIST 702
|
||||||
#define RPL_ENDOFMODLIST 703
|
#define RPL_ENDOFMODLIST 703
|
||||||
|
|
||||||
|
|
|
@ -327,6 +327,10 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
||||||
GlobalSetOptions.operstring));
|
GlobalSetOptions.operstring));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(IsSSLClient(target_p))
|
||||||
|
sendto_one_numeric(source_p, RPL_WHOISSECURE, form_str(RPL_WHOISSECURE),
|
||||||
|
target_p->name);
|
||||||
|
|
||||||
if(MyClient(target_p))
|
if(MyClient(target_p))
|
||||||
{
|
{
|
||||||
if (IsDynSpoof(target_p) && (IsOper(source_p) || source_p == target_p))
|
if (IsDynSpoof(target_p) && (IsOper(source_p) || source_p == target_p))
|
||||||
|
|
|
@ -692,7 +692,7 @@ static const char * replies[] = {
|
||||||
/* 668 */ NULL,
|
/* 668 */ NULL,
|
||||||
/* 669 */ NULL,
|
/* 669 */ NULL,
|
||||||
/* 670 */ NULL,
|
/* 670 */ NULL,
|
||||||
/* 671 */ NULL,
|
/* 671 RPL_WHOISSECURE, */ "%s :is using a secure connection",
|
||||||
/* 672 */ NULL,
|
/* 672 */ NULL,
|
||||||
/* 673 */ NULL,
|
/* 673 */ NULL,
|
||||||
/* 674 */ NULL,
|
/* 674 */ NULL,
|
||||||
|
|
Loading…
Reference in a new issue