mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-21 03:30:04 +00:00
IRC_WriteStrClientPrefix() / Get_Prefix(): respect hostname cloaking
This commit is contained in:
parent
fd4dfccc30
commit
31ea0f8ee9
@ -104,7 +104,8 @@ va_dcl
|
||||
vsnprintf( buffer, 1000, Format, ap );
|
||||
va_end( ap );
|
||||
|
||||
return Conn_WriteStr( Client_Conn( Client_NextHop( Client )), ":%s %s", Get_Prefix( Client_NextHop( Client ), Prefix ), buffer );
|
||||
return Conn_WriteStr(Client_Conn(Client_NextHop(Client)), ":%s %s",
|
||||
Get_Prefix(Client_NextHop(Client), Prefix), buffer);
|
||||
} /* IRC_WriteStrClientPrefix */
|
||||
|
||||
|
||||
@ -449,13 +450,15 @@ IRC_SetPenalty( CLIENT *Client, time_t Seconds )
|
||||
|
||||
|
||||
static const char *
|
||||
Get_Prefix( CLIENT *Target, CLIENT *Client )
|
||||
Get_Prefix(CLIENT *Target, CLIENT *Client)
|
||||
{
|
||||
assert( Target != NULL );
|
||||
assert( Client != NULL );
|
||||
assert (Target != NULL);
|
||||
assert (Client != NULL);
|
||||
|
||||
if( Client_Type( Target ) == CLIENT_SERVER ) return Client_ID( Client );
|
||||
else return Client_Mask( Client );
|
||||
if (Client_Type(Target) == CLIENT_SERVER)
|
||||
return Client_ID(Client);
|
||||
else
|
||||
return Client_MaskCloaked(Client);
|
||||
} /* Get_Prefix */
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user