diff --git a/msg.go b/msg.go index e56c770..1b2e9a0 100644 --- a/msg.go +++ b/msg.go @@ -477,6 +477,7 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar re := regexp.MustCompile(`\n#(?P[0-9]+) (?P[โš’โš—๏ธ๐Ÿ“ฆ๐Ÿนโš”๏ธ๐Ÿ›ก])(?P[โš’โš—๏ธ๐Ÿ“ฆ๐Ÿนโš”๏ธ๐Ÿ›ก]{0,1})(?P[0-9]+) \[(?P.*)\] (?P[a-zA-z0-9 ]+)`) for _, l := range re.FindAllString(r.ReplaceAllString(m.Text, "${Members}"), -1) { + log.Printf("parseSubTypeMessageGListAck : %s\n", l) m := ChatWarsGuildMember{} m.Name = re.ReplaceAllString(l, "${Name}") m.Class1 = re.ReplaceAllString(l, "${Class1}") @@ -485,7 +486,6 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar i, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Level}"), 10, 64) m.Level = int(i) 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) cwm.Members = append(cwm.Members, m) }