Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Chat
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2019-04-02 09:31:33 +0300
committerGitHub <noreply@github.com>2019-04-02 09:31:33 +0300
commitf3bf14bb5592bfba608f85a32e8ccc444a91fa89 (patch)
tree598f2f8389abaf0b3a929ae50ebef39cc0528811 /lib/Chat
parent980864527fbdf8166ab32238fe74e53c656ddfe6 (diff)
parent2c2b6b42b79c44a715782b6a23a0e6b9f84df70d (diff)
Merge pull request #1656 from nextcloud/bugfix/noid/command-interface-finish
Add a description to the commands admin settings
Diffstat (limited to 'lib/Chat')
-rw-r--r--lib/Chat/Command/Executor.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Chat/Command/Executor.php b/lib/Chat/Command/Executor.php
index 111655d58..d48fef5f3 100644
--- a/lib/Chat/Command/Executor.php
+++ b/lib/Chat/Command/Executor.php
@@ -126,6 +126,10 @@ class Executor {
}
}
+ if (empty($helps)) {
+ return $this->l->t('There are currently no commands available.');
+ }
+
// FIXME Implement a useful help
return implode("\n", $helps);
}