Fix bug #1031347, Google.stats exception.

This commit is contained in:
James Vega 2004-09-20 17:26:32 +00:00
parent 3bfb28fcee
commit a87660ade2
2 changed files with 4 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
Returns interesting information about this Google module. Mostly
useful for making sure you don't go over your 1000 requests/day limit.
"""
recent = len(self.last24hours)
recent = len(last24hours)
time = self.registryValue('state.time')
searches = self.registryValue('state.searches')
irc.reply('This google module has made %s total; '

View File

@ -113,5 +113,8 @@ class GoogleTestCase(ChannelPluginTestCase, PluginDocumentation):
self.assertNotRegexp('google foobar', 'faultType')
self.assertNotRegexp('google foobar', 'SOAP')
def testStats(self):
self.assertNotError('google stats')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: