3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

relay_clientbot: fix wrong key for clientbot_styles

This commit is contained in:
James Lu 2016-08-08 18:50:36 -07:00
parent 12e1a0edff
commit b096c7a2e3

View File

@ -59,7 +59,7 @@ def cb_relay_core(irc, source, command, args):
# .get() chains are lovely. Try to fetch the format for the given command from the
# relay:clientbot_format:$command key, falling back to one defined in default_styles
# above, and then nothing if not found.
text_template = conf.conf.get('relay', {}).get('clientbot_format', {}).get(real_command,
text_template = conf.conf.get('relay', {}).get('clientbot_styles', {}).get(real_command,
default_styles.get(real_command, ''))
text_template = string.Template(text_template)