3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

fantasy: fix error handling if prefix isn't set

This commit is contained in:
James Lu 2015-11-01 20:55:01 -08:00
parent c5b3441f6a
commit 5715835bbb

View File

@ -12,7 +12,7 @@ def handle_fantasy(irc, source, command, args):
prefix = irc.botdata["prefix"]
except KeyError:
log.warning("(%s) Fantasy prefix was not set in configuration - "
"fantasy commands will not work!", self.name)
"fantasy commands will not work!", irc.name)
return
channel = args['target']
text = args['text']