From c9b562dcd3ad5a0eeec5982e1afaec329aa8e1f8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 30 May 2019 12:13:06 +0800 Subject: [PATCH] test --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 2f3b528..310d278 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 strings.Compare(cacheObjGuild[guildID64].Name, ``) != 0 && strings.Compare(c.Role, ``) == 0 { + if cacheObjGuild[``] != 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 strings.Compare(cacheObjGuild[guildID64].Name, ``) != 0 { + if cacheObjGuild[``] != guildID64 { clientSendCWMsg(userID64, "/g_roles") }