From 6a134eb30278a90ba861d658c5cfbeb55da85b02 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 3 Mar 2015 08:55:00 +0100 Subject: [PATCH] Update string comparison to a newer string. Signed-off-by: James McCoy --- src/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 52c46d044..80db2300f 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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)