mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
fantasy: fix error handling if prefix isn't set
This commit is contained in:
parent
c5b3441f6a
commit
5715835bbb
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user