WHOIS server: display registrant name, if it has been entered

This commit is contained in:
Al Beano 2017-10-04 09:14:52 +01:00
parent 8e672a7a73
commit 34250dc8df
1 changed files with 2 additions and 1 deletions

View File

@ -55,8 +55,8 @@ $listener.tap( -> $conn {
my $regdate = DateTime.new($data.{"since"});
my $regurl = $config.{"whoissrv"}.{"registrar-urls"};
my $email_display = $user.{"email_pub"} == 1 ?? $user.{"email"} !! "< withheld >";
my $name_display = $user.{"whois_name"} ?? $user.{"whois_name"} !! "< withheld >";
# TODO: registrant name?
await $conn.write: qq:heredoc/end/.encode("UTF-8");
Domain: $q.$tld
Domain Registered: $regdate
@ -65,6 +65,7 @@ $listener.tap( -> $conn {
Domain Status: ACTIVE
Registrar URL(s): $regurl
Registrant Name: $name_display
Registrant Email: $email_display
end