cap_realhost: neaten oper IP tag check
This commit is contained in:
parent
272e4a7d33
commit
8a776ce65c
1 changed files with 2 additions and 4 deletions
|
@ -69,10 +69,8 @@ cap_realhost_outbound_msgbuf(void *data_)
|
||||||
|
|
||||||
if (!IsIPSpoof(data->client) && !EmptyString(data->client->sockhost) && strcmp(data->client->sockhost, "0"))
|
if (!IsIPSpoof(data->client) && !EmptyString(data->client->sockhost) && strcmp(data->client->sockhost, "0"))
|
||||||
{
|
{
|
||||||
if (IsDynSpoof(data->client))
|
msgbuf_append_tag(msgbuf, "solanum.chat/ip", data->client->sockhost,
|
||||||
msgbuf_append_tag(msgbuf, "solanum.chat/ip", data->client->sockhost, CLICAP_OPER_REALHOST);
|
IsDynSpoof(data->client) ? CLICAP_OPER_REALHOST : CLICAP_REALHOST);
|
||||||
else
|
|
||||||
msgbuf_append_tag(msgbuf, "solanum.chat/ip", data->client->sockhost, CLICAP_REALHOST);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EmptyString(data->client->orighost))
|
if (!EmptyString(data->client->orighost))
|
||||||
|
|
Loading…
Reference in a new issue