1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00
This commit is contained in:
Mrs4s 2020-07-21 07:16:12 +08:00
parent 9a7a28f9dc
commit a7e460246f

View File

@ -176,7 +176,7 @@ const (
) )
func (g *GroupInfo) UpdateName(newName string) { func (g *GroupInfo) UpdateName(newName string) {
if g.AdministratorOrOwner() && strings.Count(newName, "") <= 20 { if g.AdministratorOrOwner() && newName != "" && strings.Count(newName, "") <= 20 {
g.bot.updateGroupName(g.Code, newName) g.bot.updateGroupName(g.Code, newName)
g.Name = newName g.Name = newName
} }