freeside/FS/FS svc_domain.pm,1.31.4.5,1.31.4.6

ivan ivan at pouncequick.420.am
Tue Apr 13 15:30:11 PDT 2004


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv21629

Modified Files:
      Tag: FREESIDE_1_4_BRANCH
	svc_domain.pm 
Log Message:
remove dependancy on Net::Whois that wasn't being used anyway

Index: svc_domain.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_domain.pm,v
retrieving revision 1.31.4.5
retrieving revision 1.31.4.6
diff -u -d -r1.31.4.5 -r1.31.4.6
--- svc_domain.pm	3 Mar 2004 13:44:27 -0000	1.31.4.5
+++ svc_domain.pm	13 Apr 2004 22:30:08 -0000	1.31.4.6
@@ -9,7 +9,7 @@
 use Mail::Internet 1.44;
 use Mail::Header;
 use Date::Format;
-use Net::Whois 1.0;
+#use Net::Whois::Raw;
 use FS::Record qw(fields qsearch qsearchs dbh);
 use FS::Conf;
 use FS::svc_Common;
@@ -391,15 +391,16 @@
 
 =item whois
 
-Returns the Net::Whois::Domain object (see L<Net::Whois>) for this domain, or
-undef if the domain is not found in whois.
+# Returns the Net::Whois::Domain object (see L<Net::Whois>) for this domain, or
+# undef if the domain is not found in whois.
 
 (If $FS::svc_domain::whois_hack is true, returns that in all cases instead.)
 
 =cut
 
 sub whois {
-  $whois_hack or new Net::Whois::Domain $_[0]->domain;
+  #$whois_hack or new Net::Whois::Domain $_[0]->domain;
+  $whois_hack or die "whois_hack not set...\n";
 }
 
 =item _whois




More information about the freeside-commits mailing list