repo: ngircd action: commit revision: path_from: revision_from: 1a628fff51fcfddde391e6c0f27686835e1b6d2e: path_to: revision_to:
commit 1a628fff51fcfddde391e6c0f27686835e1b6d2e Author: Alexander BartonDate: Fri Dec 27 22:34:47 2013 +0100 WEBIRC: Don't respect hostname when DNS is disabled When DNS lookups are disabled, don't set the hostname received by the WEBIRC command, but use the IP address instead. Reported by Toni Spets , thanks! Closes bug #167. diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c
--- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -609,7 +609,10 @@ IRC_WEBIRC(CLIENT *Client, REQUEST *Req) Client_SetUser(Client, Req->argv[1], true); Client_SetOrigUser(Client, Req->argv[1]); - Client_SetHostname(Client, Req->argv[2]); + if (Conf_DNS) + Client_SetHostname(Client, Req->argv[2]); + else + Client_SetHostname(Client, Req->argv[3]); Client_SetIPAText(Client, Req->argv[3]); return CONNECTED;
-----END OF PAGE-----