diff --git a/plugins/Owner/plugin.py b/plugins/Owner/plugin.py index e825de208..922387f51 100644 --- a/plugins/Owner/plugin.py +++ b/plugins/Owner/plugin.py @@ -435,7 +435,7 @@ class Owner(callbacks.Plugin): 'to force it to load.' % name.capitalize()) return except ImportError, e: - if name in str(e): + if str(e).endswith(' ' + name): irc.error('No plugin named %s exists.' % utils.str.dqrepr(name)) else: irc.error(str(e))