mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix bug.
This commit is contained in:
parent
9a7a28f9dc
commit
a7e460246f
@ -176,7 +176,7 @@ const (
|
||||
)
|
||||
|
||||
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.Name = newName
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user