Fix incorrect error on loading nonexistent plugin

This commit is contained in:
GLolol 2014-02-06 18:52:33 -08:00
parent b8fa70172a
commit b8ada98df1
1 changed files with 1 additions and 1 deletions

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