mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Changed equalWeight to equal and augmented the descriptions.
This commit is contained in:
parent
029218b56e
commit
6890baa787
@ -92,14 +92,16 @@ conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'command',
|
|||||||
command will be called for the fortune command."""))
|
command will be called for the fortune command."""))
|
||||||
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'short',
|
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'short',
|
||||||
registry.Boolean(True, """Determines whether only short fortunes will be
|
registry.Boolean(True, """Determines whether only short fortunes will be
|
||||||
used if possible."""))
|
used if possible. This sends the -s option to the fortune program."""))
|
||||||
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'equalWeight',
|
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'equal',
|
||||||
registry.Boolean(True, """Determines whether fortune will give equal
|
registry.Boolean(True, """Determines whether fortune will give equal
|
||||||
weight to the different fortune databases. If false, then larger
|
weight to the different fortune databases. If false, then larger
|
||||||
databases will be given more weight."""))
|
databases will be given more weight. This sends the -e option to the
|
||||||
|
fortune program."""))
|
||||||
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'offensive',
|
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'offensive',
|
||||||
registry.Boolean(False, """Determines whether fortune will retrieve
|
registry.Boolean(False, """Determines whether fortune will retrieve
|
||||||
offensive fortunes along with the normal fortunes."""))
|
offensive fortunes along with the normal fortunes. This sends the -o
|
||||||
|
option to the fortune program."""))
|
||||||
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'files',
|
conf.registerGlobalValue(conf.supybot.plugins.Unix.fortune, 'files',
|
||||||
registry.SpaceSeparatedListOfStrings([], """Determines what specific file
|
registry.SpaceSeparatedListOfStrings([], """Determines what specific file
|
||||||
(if any) will be used with the fortune command; if none is given, the
|
(if any) will be used with the fortune command; if none is given, the
|
||||||
@ -229,7 +231,7 @@ class Unix(callbacks.Privmsg):
|
|||||||
args = [fortuneCmd]
|
args = [fortuneCmd]
|
||||||
if self.registryValue('fortune.short'):
|
if self.registryValue('fortune.short'):
|
||||||
args.append('-s')
|
args.append('-s')
|
||||||
if self.registryValue('fortune.equalWeight'):
|
if self.registryValue('fortune.equal'):
|
||||||
args.append('-e')
|
args.append('-e')
|
||||||
if self.registryValue('fortune.offensive'):
|
if self.registryValue('fortune.offensive'):
|
||||||
args.append('-a')
|
args.append('-a')
|
||||||
|
Loading…
Reference in New Issue
Block a user