Этот коммит содержится в:
=Corey Hulen
2016-02-03 16:11:54 -08:00
родитель 4da7b0ccbd
Коммит 950e25df5a

Просмотреть файл

@@ -60,7 +60,7 @@ func listCommands(c *Context, w http.ResponseWriter, r *http.Request) {
for _, value := range commandProviders { for _, value := range commandProviders {
cpy := *value.GetCommand(c) cpy := *value.GetCommand(c)
if cpy.AutoComplete && !seen[cpy.Id] { if cpy.AutoComplete && !seen[cpy.Id] {
cpy.Sanatize() cpy.Sanitize()
seen[cpy.Trigger] = true seen[cpy.Trigger] = true
commands = append(commands, &cpy) commands = append(commands, &cpy)
} }
@@ -73,7 +73,7 @@ func listCommands(c *Context, w http.ResponseWriter, r *http.Request) {
teamCmds := result.Data.([]*model.Command) teamCmds := result.Data.([]*model.Command)
for _, cmd := range teamCmds { for _, cmd := range teamCmds {
if cmd.AutoComplete && !seen[cmd.Id] { if cmd.AutoComplete && !seen[cmd.Id] {
cmd.Sanatize() cmd.Sanitize()
seen[cmd.Trigger] = true seen[cmd.Trigger] = true
commands = append(commands, cmd) commands = append(commands, cmd)
} }