Merge pull request #548 from GLolol/no-such-plugin

Fix incorrect error on loading nonexistent plugin
This commit is contained in:
Valentin Lorentz 2014-02-07 08:46:28 +01:00
commit 066c6d87c8

View File

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