Changed whois to internic.

This commit is contained in:
Jeremy Fincher 2003-10-07 21:38:11 +00:00
parent e25f0653c5
commit 1099ca0705
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ example = utils.wrapLines("""
<supybot> jemfinch: 66.35.250.150 <supybot> jemfinch: 66.35.250.150
<jemfinch> @dns 66.35.250.150 <jemfinch> @dns 66.35.250.150
<supybot> jemfinch: slashdot.org <supybot> jemfinch: slashdot.org
<jemfinch> @whois ohio-state.edu <jemfinch> @internic ohio-state.edu
<supybot> jemfinch: ohio-state.edu <http://www.educause.edu/edudomain> is active; registered 18-aug-1987, updated 19-aug-2003, expires 18-aug-2004. <supybot> jemfinch: ohio-state.edu <http://www.educause.edu/edudomain> is active; registered 18-aug-1987, updated 19-aug-2003, expires 18-aug-2004.
""") """)
@ -88,7 +88,7 @@ class Network(callbacks.Privmsg):
irc.reply(msg, 'Host not found.') irc.reply(msg, 'Host not found.')
_tlds = sets.Set(['com', 'net', 'edu']) _tlds = sets.Set(['com', 'net', 'edu'])
def whois(self, irc, msg, args): def internic(self, irc, msg, args):
"""<domain> """<domain>
Returns WHOIS information on the registration of <domain>. <domain> Returns WHOIS information on the registration of <domain>. <domain>

View File

@ -38,9 +38,9 @@ class NetworkTestCase(PluginTestCase, PluginDocumentation):
self.assertResponse('dns alsdkjfaslkdfjaslkdfj.com', 'Host not found.') self.assertResponse('dns alsdkjfaslkdfjaslkdfj.com', 'Host not found.')
def testWhois(self): def testWhois(self):
self.assertNotError('whois ohio-state.edu') self.assertNotError('internic ohio-state.edu')
self.assertError('whois www.ohio-state.edu') self.assertError('internic www.ohio-state.edu')
self.assertError('whois slashdot.org') self.assertError('internic slashdot.org')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: