From b6fb98a43176215f16fc52b64abebde51355e5c1 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 14 Sep 2017 12:01:44 -0500 Subject: remove more global references (#7442) --- app/command_online.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/command_online.go') diff --git a/app/command_online.go b/app/command_online.go index ddceaaa4f..b1319dd14 100644 --- a/app/command_online.go +++ b/app/command_online.go @@ -32,8 +32,8 @@ func (me *OnlineProvider) GetCommand(T goi18n.TranslateFunc) *model.Command { } } -func (me *OnlineProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse { - Global().SetStatusOnline(args.UserId, args.Session.Id, true) +func (me *OnlineProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse { + a.SetStatusOnline(args.UserId, args.Session.Id, true) return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_online.success")} } -- cgit v1.2.3-1-g7c22