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))