diff --git a/client.go b/client.go index 48c7da2..50d17e3 100644 --- a/client.go +++ b/client.go @@ -16,7 +16,7 @@ func clientSendCWMsg(userID64 int64, s string) { func clientMsgMeAck(m *ChatWarsMessageMeAck) { if _, ok := clientsQueue[m.Msg.UserID64]; ok { - if v, ok := clientsCW[m.Msg.UserID64]; ok { + if v, ok := clientsCW.Load(m.Msg.UserID64); ok { c := v.(*ChatWarsClient) if c.LastUpdate.Before(m.Msg.Date) { c.GuildID64 = m.GuildID64