summaryrefslogtreecommitdiffstats
path: root/app/command_away.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/command_away.go')
-rw-r--r--app/command_away.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/command_away.go b/app/command_away.go
index f4150dfeb..77f5cc7f3 100644
--- a/app/command_away.go
+++ b/app/command_away.go
@@ -33,11 +33,7 @@ func (me *AwayProvider) GetCommand(T goi18n.TranslateFunc) *model.Command {
}
func (me *AwayProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse {
- rmsg := args.T("api.command_away.success")
- if len(message) > 0 {
- rmsg = message + " " + rmsg
- }
SetStatusAwayIfNeeded(args.UserId, true)
- return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: rmsg}
+ return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_away.success")}
}