fix
This commit is contained in:
parent
7fdde860a4
commit
f705bb048b
3
msg.go
3
msg.go
@ -483,9 +483,10 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
|
|||||||
m.Class2 = re.ReplaceAllString(l, "${Class2}")
|
m.Class2 = re.ReplaceAllString(l, "${Class2}")
|
||||||
m.Status = re.ReplaceAllString(l, "${Status}")
|
m.Status = re.ReplaceAllString(l, "${Status}")
|
||||||
i, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Level}"), 10, 64)
|
i, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Level}"), 10, 64)
|
||||||
cwm.Level = i
|
m.Level = i
|
||||||
log.Printf("parseSubTypeMessageGListAck : %s : %s/%s [%d] => %s\n", m.Name, m.Class1, m.Class2, m.Level, m.Status)
|
log.Printf("parseSubTypeMessageGListAck : %s : %s/%s [%d] => %s\n", m.Name, m.Class1, m.Class2, m.Level, m.Status)
|
||||||
//log.Printf("parseSubTypeMessageGListAck : %s\n", l)
|
//log.Printf("parseSubTypeMessageGListAck : %s\n", l)
|
||||||
|
cwm.Members = append(cwm.Members, m)
|
||||||
}
|
}
|
||||||
|
|
||||||
return &cwm, nil
|
return &cwm, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user