mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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.',
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user