diff --git a/client.go b/client.go index 310d278..97ca6a2 100644 --- a/client.go +++ b/client.go @@ -22,7 +22,7 @@ func clientMsgMe(userID64 int64, guildID64 int64, state string, timestamp time.T c.GuildID64 = guildID64 c.State = state c.LastUpdate = timestamp - if cacheObjGuild[``] != guildID64 && strings.Compare(c.Role, ``) == 0 { + if cacheObjGuild[``].ObjID64 != guildID64 && strings.Compare(c.Role, ``) == 0 { clientSendCWMsg(userID64, "/g_roles") } } @@ -33,7 +33,7 @@ func clientMsgMe(userID64 int64, guildID64 int64, state string, timestamp time.T LastUpdate: timestamp, } clientsCW[userID64] = &c - if cacheObjGuild[``] != guildID64 { + if cacheObjGuild[``].ObjID64 != guildID64 { clientSendCWMsg(userID64, "/g_roles") }