From f21a3bf86470c159fb50c515976773770341c6e0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 30 May 2019 17:10:26 +0800 Subject: [PATCH] test --- msg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/msg.go b/msg.go index fde172b..a307085 100644 --- a/msg.go +++ b/msg.go @@ -70,28 +70,28 @@ func parseSubTypeMessageGRolesAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa */ if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Bartender}")) != 0 { s := r.ReplaceAllString(m.Text, "${Bartender}") - _, i := utf8.DecodeRunInString(s) + _, i := utf8.DecodeRuneInString(s) cwm.BartenderID64 = getObjUserID(s[i:]) } else { cwm.BartenderID64 = 0 } if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Commander}")) != 0 { s := r.ReplaceAllString(m.Text, "${Commander}") - _, i := utf8.DecodeRunInString(s) + _, i := utf8.DecodeRuneInString(s) cwm.CommanderID64 = getObjUserID(s[i:]) } else { cwm.CommanderID64 = 0 } if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Squire}")) != 0 { s := r.ReplaceAllString(m.Text, "${Bartender}") - _, i := utf8.DecodeRunInString(s) + _, i := utf8.DecodeRuneInString(s) cwm.SquireID64 = getObjUserID(s[i:]) } else { cwm.SquireID64 = 0 } if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Treasurer}")) != 0 { s := r.ReplaceAllString(m.Text, "${Bartender}") - _, i := utf8.DecodeRunInString(s) + _, i := utf8.DecodeRuneInString(s) cwm.TreasurerID64 = getObjUserID(s[i:]) } else { cwm.TreasurerID64 = 0