diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-14 12:01:44 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-09-14 13:01:44 -0400 |
commit | b6fb98a43176215f16fc52b64abebde51355e5c1 (patch) | |
tree | 095a2006bdfdd30d1a9c4fc4e604924fc0f50225 /app/command_away.go | |
parent | af81f7e48bd2afaaa8c71f78bf86bdc00b104e4d (diff) | |
download | chat-b6fb98a43176215f16fc52b64abebde51355e5c1.tar.gz chat-b6fb98a43176215f16fc52b64abebde51355e5c1.tar.bz2 chat-b6fb98a43176215f16fc52b64abebde51355e5c1.zip |
remove more global references (#7442)
Diffstat (limited to 'app/command_away.go')
-rw-r--r-- | app/command_away.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/command_away.go b/app/command_away.go index 43cb26fd4..7505f0551 100644 --- a/app/command_away.go +++ b/app/command_away.go @@ -32,8 +32,8 @@ func (me *AwayProvider) GetCommand(T goi18n.TranslateFunc) *model.Command { } } -func (me *AwayProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse { - Global().SetStatusAwayIfNeeded(args.UserId, true) +func (me *AwayProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse { + a.SetStatusAwayIfNeeded(args.UserId, true) return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_away.success")} } |