summaryrefslogtreecommitdiffstats
path: root/app/command_shortcuts.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-06-05 10:38:43 -0400
committerChristopher Speller <crspeller@gmail.com>2017-06-05 07:38:43 -0700
commitb53ca57bad4f62422f9cf4b62d54c6f508ba13cb (patch)
treebf113cd9b67f3c53955383c5d0a699d853197733 /app/command_shortcuts.go
parent7be7c677573f470ae832b0ae462dc7041f64333c (diff)
downloadchat-b53ca57bad4f62422f9cf4b62d54c6f508ba13cb.tar.gz
chat-b53ca57bad4f62422f9cf4b62d54c6f508ba13cb.tar.bz2
chat-b53ca57bad4f62422f9cf4b62d54c6f508ba13cb.zip
Fixed out of bounds array index (#6576)
Diffstat (limited to 'app/command_shortcuts.go')
-rw-r--r--app/command_shortcuts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/command_shortcuts.go b/app/command_shortcuts.go
index 547d8155f..9eefb698e 100644
--- a/app/command_shortcuts.go
+++ b/app/command_shortcuts.go
@@ -37,7 +37,7 @@ func (me *ShortcutsProvider) GetCommand(T goi18n.TranslateFunc) *model.Command {
}
func (me *ShortcutsProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse {
- shortcutIds := [29]string{
+ shortcutIds := [...]string{
"api.command_shortcuts.header",
// Nav shortcuts
"api.command_shortcuts.nav.header",