mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-31 17:49:11 +00:00
Send_Message(): respect hostname cloaking
This commit is contained in:
parent
31ea0f8ee9
commit
0263fa4c66
@ -412,7 +412,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
|
|||||||
if (nick != NULL && host != NULL) {
|
if (nick != NULL && host != NULL) {
|
||||||
if (strcmp(nick, Client_ID(cl)) == 0 &&
|
if (strcmp(nick, Client_ID(cl)) == 0 &&
|
||||||
strcmp(user, Client_User(cl)) == 0 &&
|
strcmp(user, Client_User(cl)) == 0 &&
|
||||||
strcasecmp(host, Client_Hostname(cl)) == 0)
|
strcasecmp(host, Client_HostnameCloaked(cl)) == 0)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
@ -420,7 +420,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
|
|||||||
if (strcasecmp(user, Client_User(cl)) != 0)
|
if (strcasecmp(user, Client_User(cl)) != 0)
|
||||||
continue;
|
continue;
|
||||||
if (host != NULL && strcasecmp(host,
|
if (host != NULL && strcasecmp(host,
|
||||||
Client_Hostname(cl)) != 0)
|
Client_HostnameCloaked(cl)) != 0)
|
||||||
continue;
|
continue;
|
||||||
if (server != NULL && strcasecmp(server,
|
if (server != NULL && strcasecmp(server,
|
||||||
Client_ID(Client_Introducer(cl))) != 0)
|
Client_ID(Client_Introducer(cl))) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user