From 72e71edb89f4e52b1fda049a6e0d096637c956d7 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. --- src/callbacks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 53a3d6503..2dcbb1548 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1287,7 +1287,9 @@ 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: + # Note: this case will never happen, unless 'checkDoc' is set + # to False. irc.error(_('Invalid arguments for %s.') % ' '.join(command)) else: irc.reply(help)