mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 05:02:33 +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"]
|
prefix = irc.botdata["prefix"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
log.warning("(%s) Fantasy prefix was not set in configuration - "
|
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
|
return
|
||||||
channel = args['target']
|
channel = args['target']
|
||||||
text = args['text']
|
text = args['text']
|
||||||
|
Loading…
Reference in New Issue
Block a user