Merge pull request #604 from Mkaysi/automode

AutoMode: use default settings that make sense.
This commit is contained in:
Valentin Lorentz 2014-05-03 15:17:15 +02:00
commit d020c67436

View File

@ -46,26 +46,26 @@ conf.registerChannelValue(AutoMode, 'enable',
registry.Boolean(True, _("""Determines whether this plugin is enabled. registry.Boolean(True, _("""Determines whether this plugin is enabled.
"""))) """)))
conf.registerGlobalValue(AutoMode, 'owner', conf.registerGlobalValue(AutoMode, 'owner',
registry.Boolean(True, _("""Determines whether this plugin will automode registry.Boolean(False, _("""Determines whether this plugin will automode
owners even if they don't have op/halfop/voice/whatever capability."""))) owners even if they don't have op/halfop/voice/whatever capability.""")))
conf.registerChannelValue(AutoMode, 'alternativeCapabilities', conf.registerChannelValue(AutoMode, 'alternativeCapabilities',
registry.Boolean(False, _("""Determines whether the bot will registry.Boolean(False, _("""Determines whether the bot will
check for 'alternative capabilities' (ie. autoop, autohalfop, check for 'alternative capabilities' (ie. autoop, autohalfop,
autovoice) in addition to/instead of classic ones."""))) autovoice) in addition to/instead of classic ones.""")))
conf.registerChannelValue(AutoMode, 'fallthrough', conf.registerChannelValue(AutoMode, 'fallthrough',
registry.Boolean(False, _("""Determines whether the bot will "fall registry.Boolean(True, _("""Determines whether the bot will "fall
through" to halfop/voicing when auto-opping is turned off but through" to halfop/voicing when auto-opping is turned off but
auto-halfopping/voicing are turned on."""))) auto-halfopping/voicing are turned on.""")))
conf.registerChannelValue(AutoMode, 'op', conf.registerChannelValue(AutoMode, 'op',
registry.Boolean(True, _("""Determines whether the bot will automatically registry.Boolean(False, _("""Determines whether the bot will automatically
op people with the <channel>,op capability when they join the channel. op people with the <channel>,op capability when they join the channel.
"""))) """)))
conf.registerChannelValue(AutoMode, 'halfop', conf.registerChannelValue(AutoMode, 'halfop',
registry.Boolean(True, _("""Determines whether the bot will automatically registry.Boolean(False, _("""Determines whether the bot will automatically
halfop people with the <channel>,halfop capability when they join the halfop people with the <channel>,halfop capability when they join the
channel."""))) channel.""")))
conf.registerChannelValue(AutoMode, 'voice', conf.registerChannelValue(AutoMode, 'voice',
registry.Boolean(True, _("""Determines whether the bot will automatically registry.Boolean(False, _("""Determines whether the bot will automatically
voice people with the <channel>,voice capability when they join the voice people with the <channel>,voice capability when they join the
channel."""))) channel.""")))
conf.registerChannelValue(AutoMode, 'ban', conf.registerChannelValue(AutoMode, 'ban',