From b8ada98df1eef7fe0f30925428b1c610e0df0b86 Mon Sep 17 00:00:00 2001 From: GLolol Date: Thu, 6 Feb 2014 18:52:33 -0800 Subject: [PATCH] Fix incorrect error on loading nonexistent plugin --- plugins/Owner/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Owner/plugin.py b/plugins/Owner/plugin.py index 9983e3e95..37704273f 100644 --- a/plugins/Owner/plugin.py +++ b/plugins/Owner/plugin.py @@ -436,7 +436,7 @@ class Owner(callbacks.Plugin): 'to force it to load.' % name.capitalize()) return except ImportError as e: - if str(e).endswith(' ' + name): + if str(e).endswith(name): irc.error('No plugin named %s exists.' % utils.str.dqrepr(name)) else: irc.error(str(e))