test
This commit is contained in:
parent
ee6b7f3ef7
commit
7b3c326f18
8
obj.go
8
obj.go
@ -244,9 +244,13 @@ func getObjGuildID(s string) int64 {
|
||||
if g, ok := cacheObjGuild[s]; ok {
|
||||
return g.ObjID64
|
||||
} else {
|
||||
_, err := addObjGuild(s, ``)
|
||||
objID64, err := addObjGuild(s, ``)
|
||||
logOnError(err, "getObjGuildID")
|
||||
loadObjGuild()
|
||||
g := new(ChatWarsGuild)
|
||||
g.ObjID64 = objID64
|
||||
g.Tag = s
|
||||
g.Name = ``
|
||||
cacheObjGuild[s] = *g
|
||||
}
|
||||
return cacheObjGuild[s].ObjID64
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user