Google.metagoogle -> Google.meta

This commit is contained in:
James Vega 2005-03-25 15:45:44 +00:00
parent e29a9c0aa0
commit 9c7c384d22

View File

@ -211,7 +211,7 @@ class Google(callbacks.PluginRegexp):
'notsafe':'', 'similar':''}), 'notsafe':'', 'similar':''}),
many('something')]) many('something')])
def metagoogle(self, irc, msg, args, optlist, text): def meta(self, irc, msg, args, optlist, text):
"""<search> [--(language,restrict)=<value>] [--{similar,notsafe}] """<search> [--(language,restrict)=<value>] [--{similar,notsafe}]
Searches google and gives all the interesting meta information about Searches google and gives all the interesting meta information about
@ -237,10 +237,10 @@ class Google(callbacks.PluginRegexp):
meta.searchTime, meta.searchTime,
categories and format(' Categories include %L.',categories)) categories and format(' Categories include %L.',categories))
irc.reply(s) irc.reply(s)
metagoogle = wrap(metagoogle, [getopts({'language':'something', meta= wrap(meta, [getopts({'language':'something',
'restrict':'something', 'restrict':'something',
'notsafe':'', 'similar':''}), 'notsafe':'', 'similar':''}),
many('something')]) many('something')])
_cacheUrlRe = re.compile('<code>([^<]+)</code>') _cacheUrlRe = re.compile('<code>([^<]+)</code>')
def cache(self, irc, msg, args, url): def cache(self, irc, msg, args, url):