mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Rename showWhichResponded to showDictName.
This commit is contained in:
parent
183592dff0
commit
3275806740
@ -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 '*'.
|
||||||
""")))
|
""")))
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user