From 5715835bbb90ae0a1b9164e5a3239adcc0ed5087 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 1 Nov 2015 20:55:01 -0800 Subject: [PATCH] fantasy: fix error handling if prefix isn't set --- plugins/fantasy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fantasy.py b/plugins/fantasy.py index 29ca813..78ee29d 100644 --- a/plugins/fantasy.py +++ b/plugins/fantasy.py @@ -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']