mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-08 03:59:23 +01:00
Removed stupid alias crap\!
This commit is contained in:
parent
09eae1bdcc
commit
b668da98aa
@ -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/""")
|
||||||
|
Loading…
Reference in New Issue
Block a user