This commit is contained in:
shoopea 2019-05-30 13:55:53 +08:00
parent 0731e17211
commit 239a383581

View File

@ -14,8 +14,10 @@ func clientSendCWMsg(userID64 int64, s string) {
MQTGCmdQueue <- c MQTGCmdQueue <- c
} }
func clientMsgMe(m *ChatWarsMessageMeAck) { func clientMsgMeAck(m *ChatWarsMessageMeAck) {
log.Printf("clientMsgMeAck\n")
if _, ok := clientsQueue[m.UserID64]; ok { if _, ok := clientsQueue[m.UserID64]; ok {
log.Printf("Client in clientsQueue\n")
t, err := getObjMsgDate(m.ObjID64) t, err := getObjMsgDate(m.ObjID64)
logOnError(err, "clientMsgMe : getObjMsgDate") logOnError(err, "clientMsgMe : getObjMsgDate")
if c, ok := clientsCW[m.UserID64]; ok { if c, ok := clientsCW[m.UserID64]; ok {
@ -36,8 +38,11 @@ func clientMsgMe(m *ChatWarsMessageMeAck) {
clientsCW[m.UserID64] = &c clientsCW[m.UserID64] = &c
if cacheObjGuild[``].ObjID64 != m.GuildID64 { if cacheObjGuild[``].ObjID64 != m.GuildID64 {
clientSendCWMsg(m.UserID64, "/g_roles") clientSendCWMsg(m.UserID64, "/g_roles")
} else {
clientSendCWMsg(m.UserID64, "/g_roles")
} }
} }
} else {
log.Printf("Client not in clientsQueue\n")
} }
} }