diff --git a/plugins/Unix/config.py b/plugins/Unix/config.py index 1fd8e7196..0da4ec10b 100644 --- a/plugins/Unix/config.py +++ b/plugins/Unix/config.py @@ -66,7 +66,7 @@ conf.registerGlobalValue(Unix.fortune, 'equal', weight to the different fortune databases. If false, then larger databases will be given more weight. This sends the -e option to the fortune program."""))) -conf.registerGlobalValue(Unix.fortune, 'offensive', +conf.registerChannelValue(Unix.fortune, 'offensive', registry.Boolean(False, _("""Determines whether fortune will retrieve offensive fortunes along with the normal fortunes. This sends the -a option to the fortune program."""))) diff --git a/plugins/Unix/plugin.py b/plugins/Unix/plugin.py index c70d86f13..0f5a8c07c 100644 --- a/plugins/Unix/plugin.py +++ b/plugins/Unix/plugin.py @@ -204,7 +204,7 @@ class Unix(callbacks.Plugin): args.append('-s') if self.registryValue('fortune.equal'): args.append('-e') - if self.registryValue('fortune.offensive'): + if self.registryValue('fortune.offensive', channel): args.append('-a') args.extend(self.registryValue('fortune.files')) try: