mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Update string comparison to a newer string.
This commit is contained in:
parent
6f9960d7a4
commit
72e71edb89
@ -1287,7 +1287,9 @@ class Commands(BasePlugin):
|
|||||||
self.log.debug('Got %s, giving argument error.',
|
self.log.debug('Got %s, giving argument error.',
|
||||||
utils.exnToString(e))
|
utils.exnToString(e))
|
||||||
help = self.getCommandHelp(command)
|
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))
|
irc.error(_('Invalid arguments for %s.') % ' '.join(command))
|
||||||
else:
|
else:
|
||||||
irc.reply(help)
|
irc.reply(help)
|
||||||
|
Loading…
Reference in New Issue
Block a user