mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 06:21:08 +00:00
fix first page of help
This commit is contained in:
parent
f3a543dffc
commit
fcce925032
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ class Command {
|
|||
this.parentBase = (this.parent && this.parent.base && this.parent.base + ' ') || '';
|
||||
this.base = this.parentBase + (this.params.base || '');
|
||||
|
||||
this.updateHistory();
|
||||
if(this.params.base) this.updateHistory();
|
||||
}
|
||||
|
||||
find(command) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ module.exports.player=function(player, serv) {
|
|||
player.chat('Help -=-=-=-=-=-=-=-=-');
|
||||
}
|
||||
for (var i = PAGE_LENGTH*page; i < Math.min(PAGE_LENGTH*(page + 1), found.length); i++) {
|
||||
if (i == search) continue;
|
||||
if (found[i] === search) continue;
|
||||
var cmd = hash[found[i]];
|
||||
var usage = (cmd.params && cmd.params.usage) || cmd.base;
|
||||
var info = (cmd.params && cmd.params.info) || 'No info';
|
||||
|
|
|
|||
Loading…
Reference in a new issue