From d069f6b2230c43022abe5721cfe1a18090a5bc82 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 30 May 2019 16:57:10 +0800 Subject: [PATCH] test --- msg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/msg.go b/msg.go index 73bd991..966c266 100644 --- a/msg.go +++ b/msg.go @@ -67,25 +67,25 @@ func parseSubTypeMessageGRolesAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa SquireID64: getObjUserID(r.ReplaceAllString(m.Text, "${Squire}")), TreasurerID64: getObjUserID(r.ReplaceAllString(m.Text, "${Treasurer}")), */ - if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Bartender}")) != 0 { + if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Bartender}")) != 0 { s := r.ReplaceAllString(m.Text, "${Bartender}") cwm.BartenderID64 = getObjUserID(s[1:]) } else { cwm.BartenderID64 = 0 } - if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Commander}")) != 0 { + if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Commander}")) != 0 { s := r.ReplaceAllString(m.Text, "${Commander}") cwm.CommanderID64 = getObjUserID(s[1:]) } else { cwm.CommanderID64 = 0 } - if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Squire}")) != 0 { + if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Squire}")) != 0 { s := r.ReplaceAllString(m.Text, "${Bartender}") cwm.SquireID64 = getObjUserID(s[1:]) } else { cwm.SquireID64 = 0 } - if strings.compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Treasurer}")) != 0 { + if strings.Compare(`[unassigned]`, r.ReplaceAllString(m.Text, "${Treasurer}")) != 0 { s := r.ReplaceAllString(m.Text, "${Bartender}") cwm.TreasurerID64 = getObjUserID(s[1:]) } else {