Removed stupid alias crap\!

This commit is contained in:
Jeremy Fincher 2004-02-12 03:59:08 +00:00
parent 09eae1bdcc
commit b668da98aa

View File

@ -86,25 +86,6 @@ def configure(advanced):
conf.supybot.plugins.Google.groupsSnarfer.setValue(True) conf.supybot.plugins.Google.groupsSnarfer.setValue(True)
if yn('Do you want the Google search snarfer enabled by default?'): if yn('Do you want the Google search snarfer enabled by default?'):
conf.supybot.plugins.Google.searchSnarfer.setValue(True) conf.supybot.plugins.Google.searchSnarfer.setValue(True)
hasAlias = False
for (name, _) in conf.supybot.plugins.getValues(fullNames=False):
if name == 'Alias':
hasAlias = True
if not hasAlias:
output('Google depends on the Alias module '
'for some extra commands.')
if yn('Would you like to load the Alias module now?'):
conf.registerPlugin('Alias', True)
else:
output('You can still use the Google module, but you won\'t '
'have these extra commands enabled.')
return
conf.supybot.plugins.Alias.aliases.register('googlelinux',
registry.String('google --restrict=linux $*', ''))
conf.supybot.plugins.Alias.aliases.register('googlebsd',
registry.String('google --restrict=bsd $*', ''))
conf.supybot.plugins.Alias.aliases.register('googlemac',
registry.String('google --restrict=mac $*', ''))
else: else:
output("""You'll need to get a key before you can use this plugin. output("""You'll need to get a key before you can use this plugin.
You can apply for a key at http://www.google.com/apis/""") You can apply for a key at http://www.google.com/apis/""")