mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Changed whois to internic.
This commit is contained in:
parent
e25f0653c5
commit
1099ca0705
@ -59,7 +59,7 @@ example = utils.wrapLines("""
|
||||
<supybot> jemfinch: 66.35.250.150
|
||||
<jemfinch> @dns 66.35.250.150
|
||||
<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.
|
||||
""")
|
||||
|
||||
@ -88,7 +88,7 @@ class Network(callbacks.Privmsg):
|
||||
irc.reply(msg, 'Host not found.')
|
||||
|
||||
_tlds = sets.Set(['com', 'net', 'edu'])
|
||||
def whois(self, irc, msg, args):
|
||||
def internic(self, irc, msg, args):
|
||||
"""<domain>
|
||||
|
||||
Returns WHOIS information on the registration of <domain>. <domain>
|
||||
|
@ -38,9 +38,9 @@ class NetworkTestCase(PluginTestCase, PluginDocumentation):
|
||||
self.assertResponse('dns alsdkjfaslkdfjaslkdfj.com', 'Host not found.')
|
||||
|
||||
def testWhois(self):
|
||||
self.assertNotError('whois ohio-state.edu')
|
||||
self.assertError('whois www.ohio-state.edu')
|
||||
self.assertError('whois slashdot.org')
|
||||
self.assertNotError('internic ohio-state.edu')
|
||||
self.assertError('internic www.ohio-state.edu')
|
||||
self.assertError('internic slashdot.org')
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user