Skip to content

Commit

Permalink
Add an empty help message
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Apr 1, 2019
1 parent 041b4cf commit 2c2b6b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Chat/Command/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ protected function execHelp(Room $room, IComment $message, string $arguments): s
}
}

if (empty($helps)) {
return $this->l->t('There are currently no commands available.');
}

// FIXME Implement a useful help
return implode("\n", $helps);
}
Expand Down

0 comments on commit 2c2b6b4

Please sign in to comment.