From 2c2b6b42b79c44a715782b6a23a0e6b9f84df70d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 1 Apr 2019 15:03:54 +0200 Subject: [PATCH] Add an empty help message Signed-off-by: Joas Schilling --- lib/Chat/Command/Executor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Chat/Command/Executor.php b/lib/Chat/Command/Executor.php index 111655d586c..d48fef5f32d 100644 --- a/lib/Chat/Command/Executor.php +++ b/lib/Chat/Command/Executor.php @@ -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); }