]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/client.c
ClientHost setting
[ngircd-alex.git] / src / ngircd / client.c
index 0bfe73d383d399e3903b78b540c382242e65bdb5..11decc8689584e116b6505a3369f20cbcd59f073 100644 (file)
@@ -319,7 +319,11 @@ Client_SetHostname( CLIENT *Client, const char *Hostname )
        assert( Client != NULL );
        assert( Hostname != NULL );
 
-       strlcpy( Client->host, Hostname, sizeof( Client->host ));
+       if (strlen(Conf_ClientHost)) {
+               strlcpy( Client->host, Conf_ClientHost, sizeof( Client->host ));
+       } else {
+               strlcpy( Client->host, Hostname, sizeof( Client->host ));
+       }
 } /* Client_SetHostname */