Update string comparison to a newer string.

Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
Valentin Lorentz 2015-03-03 08:55:00 +01:00 committed by James McCoy
parent b0846f914e
commit 6a134eb302
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
1 changed files with 1 additions and 1 deletions

View File

@ -1206,7 +1206,7 @@ class Commands(BasePlugin):
self.log.debug('Got %s, giving argument error.',
utils.exnToString(e))
help = self.getCommandHelp(command)
if help.endswith('command has no help.'):
if 'command has no help.' in help:
irc.error('Invalid arguments for %s.' % formatCommand(command))
else:
irc.reply(help)