X-Git-Url: http://git.vpit.fr/?p=perl%2Fscripts%2Fxchat.git;a=blobdiff_plain;f=net.pl;fp=net.pl;h=13d73eda0b32fe70f5f2f8fc36526f4fb41b0854;hp=3dbf3f8681f7a7975dc469c6501c60e1ae255d9b;hb=bc7fad34cd01ea436368b5e099cede0aa17abab6;hpb=1653942ef55abd3f4aefff434f4452b641b3ce76 diff --git a/net.pl b/net.pl index 3dbf3f8..13d73ed 100755 --- a/net.pl +++ b/net.pl @@ -69,7 +69,7 @@ sub dig_print { } else { output '*', 'Resolution failed for ' . $req->{host}, map { - $_->mname . ' IN SOA ' . $_->rname . "\n", + $_->mname . ' IN SOA ' . $_->rname . "\n", join ' ', 'serial:' . $_->serial, 'ref:' . $_->refresh, 'ret:' . $_->retry, 'exp:' . $_->expire, 'min:' . $_->minimum . "\n"; @@ -90,8 +90,8 @@ hook_command 'NETWHOIS', sub { my $info = user_info $_; my $req = parse_url($info ? $info->{host} : $_); whois $req->{host}, \&netwhois_print, [ $context, $req ]; - } - return EAT_ALL; + } + return EAT_ALL; }, { help_text => 'NETWHOIS , retrieve domain/ip information' }; @@ -126,7 +126,7 @@ hook_command 'TLD', sub { next unless $tld; my $name = code2country $tld; print $ph $tld . ' is ' . ($name ? $name : 'unknown') . "\n"; - } + } return EAT_ALL; }, { help_text => 'TLD , give the TLD text representation of the hosts'