diff --git a/plugins/Google.py b/plugins/Google.py index 48e6ac126..789848384 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -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; ' diff --git a/test/test_Google.py b/test/test_Google.py index 0fb45b177..792152488 100644 --- a/test/test_Google.py +++ b/test/test_Google.py @@ -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: