Rename showWhichResponded to showDictName.

This commit is contained in:
Valentin Lorentz 2015-03-17 07:58:39 +01:00
parent 183592dff0
commit 3275806740
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ conf.registerChannelValue(Dict, 'default',
registry.String('*', _("""Determines the default dictionary the bot registry.String('*', _("""Determines the default dictionary the bot
will ask for definitions in. If this value is '*' (without the quotes) will ask for definitions in. If this value is '*' (without the quotes)
the bot will use all dictionaries to define words."""))) the bot will use all dictionaries to define words.""")))
conf.registerChannelValue(Dict, 'showWhichResponded', conf.registerChannelValue(Dict, 'showDictName',
registry.Boolean(True, _("""Determines whether the bot will show which registry.Boolean(True, _("""Determines whether the bot will show which
dictionaries responded to a query, if the selected dictionary is '*'. dictionaries responded to a query, if the selected dictionary is '*'.
"""))) """)))

View File

@ -123,7 +123,7 @@ class Dict(callbacks.Plugin):
L.append('%s: %s' % (db, s)) L.append('%s: %s' % (db, s))
utils.sortBy(len, L) utils.sortBy(len, L)
if dictionary == '*' and len(dbs) > 1 and \ if dictionary == '*' and len(dbs) > 1 and \
self.registryValue("showWhichResponded", msg.args[0]): self.registryValue("showDictName", msg.args[0]):
s = format(_('%L responded: %s'), list(dbs), '; '.join(L)) s = format(_('%L responded: %s'), list(dbs), '; '.join(L))
else: else:
s = '; '.join(L) s = '; '.join(L)