From b668da98aab1992be03080745dbe259f1372540a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 12 Feb 2004 03:59:08 +0000 Subject: [PATCH] Removed stupid alias crap\! --- plugins/Google.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/plugins/Google.py b/plugins/Google.py index dae23568b..46d37412e 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -86,25 +86,6 @@ def configure(advanced): conf.supybot.plugins.Google.groupsSnarfer.setValue(True) if yn('Do you want the Google search snarfer enabled by default?'): 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: 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/""")