summaryrefslogtreecommitdiffstats
path: root/model/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/command.go')
-rw-r--r--model/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/command.go b/model/command.go
index b854ae76a..4d5f7ace9 100644
--- a/model/command.go
+++ b/model/command.go
@@ -99,7 +99,7 @@ func (o *Command) IsValid() *AppError {
return NewLocAppError("Command.IsValid", "model.command.is_valid.team_id.app_error", nil, "")
}
- if len(o.Trigger) > 128 {
+ if len(o.Trigger) == 0 || len(o.Trigger) > 128 {
return NewLocAppError("Command.IsValid", "model.command.is_valid.trigger.app_error", nil, "")
}