diff --git a/workers.go b/workers.go index b1efc0c..d3dcc45 100644 --- a/workers.go +++ b/workers.go @@ -590,14 +590,14 @@ func MQTidyKeepAliveWorker() { cmd = TGCommand{ Type: commandSendMsg, ToUserID64: cfg.Bot.Admin, - Text: fmt.Sprintf("Client %s timed out (%d messages purged).", clt.MQ.User, msgs), + Text: fmt.Sprintf("Client %s timed out (%d messages purged).", clt.Login, msgs), } TGCmdQueue <- cmd clt.Active = false } else if clt.Active { - log.Printf("MQTidyKeepAliveWorker : Client %s is active.\n", clt.MQ.User) + log.Printf("MQTidyKeepAliveWorker : Client %s is active.\n", clt.Login) } else { - log.Printf("MQTidyKeepAliveWorker : Client %s is inactive.\n", clt.MQ.User) + log.Printf("MQTidyKeepAliveWorker : Client %s is inactive.\n", clt.Login) } clt.Mux.Unlock() }