X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fclient.c;h=a453312c3e93473a8a0ee7c2c8cf1c4a5b652660;hb=eead4a631feb4d3cb8d7fefb2b09207d771035ca;hp=7e6ff68afd4b8cf84e68d116f2ebe3bcd64d0fc3;hpb=9811223fb882413645db38948ac05fa21ddd3514;p=ngircd-alex.git diff --git a/src/ngircd/client.c b/src/ngircd/client.c index 7e6ff68a..a453312c 100644 --- a/src/ngircd/client.c +++ b/src/ngircd/client.c @@ -337,7 +337,9 @@ Client_SetHostname( CLIENT *Client, const char *Hostname ) assert(Client != NULL); assert(Hostname != NULL); - if (Conf_CloakHost[0]) { + /* Only cloak the hostmask if it has not yet been cloaked (the period + * indicates it's still an IP address). */ + if (Conf_CloakHost[0] && strchr(Client->host, '.')) { char cloak[GETID_LEN]; strlcpy(cloak, Hostname, GETID_LEN);