1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
harveyshao 2021-12-04 11:53:51 +08:00
parent 9d9920d36a
commit 30918cb70d

View File

@ -57,8 +57,8 @@ func _status_tags(m *ice.Message) {
return text
}
if v, ok := vs[kit.Slice(strings.Split(ls[0], ice.PS), -1)[0]]; ok && ls[1] != v {
m.Info("upgrade to %v %v from %v", ls[0], ls[1], v)
text = strings.Replace(text, v, ls[1], 1)
m.Info("upgrade %v %v to %v", ls[0], ls[1], v)
text = strings.ReplaceAll(text, ls[1], v)
change = true
}
return text