From: qydysky Date: Sat, 17 Feb 2024 13:55:02 +0000 (+0800) Subject: Fix 标题不修改 X-Git-Tag: v0.12.12~1 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=4215f376280abf3fcb83f285c33cb53bb0fc3f76;p=bili_danmu%2F.git Fix 标题不修改 --- diff --git a/Reply/Reply.go b/Reply/Reply.go index 11b2029..f22f01c 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -546,16 +546,6 @@ func (replyF) room_change(s string) { msglog.L(`E: `, e) } - if type_item.Data.AreaID != 0 { - c.C.AreaID = type_item.Data.AreaID - } - if type_item.Data.ParentAreaID != 0 { - c.C.ParentAreaID = type_item.Data.ParentAreaID - } - if type_item.Data.Title != "" { - c.C.Title = type_item.Data.Title - } - setTitle := StreamOCut(c.C.Roomid) if c.C.Title == type_item.Data.Title && c.C.AreaID == type_item.Data.AreaID { @@ -591,7 +581,16 @@ func (replyF) room_change(s string) { return } - setTitle(type_item.Data.Title) + if type_item.Data.AreaID != 0 { + c.C.AreaID = type_item.Data.AreaID + } + if type_item.Data.ParentAreaID != 0 { + c.C.ParentAreaID = type_item.Data.ParentAreaID + } + if type_item.Data.Title != "" { + c.C.Title = type_item.Data.Title + } + setTitle(c.C.Title) var sh = []any{"房间改变", type_item.Data.Title, type_item.Data.AreaName} Gui_show(Itos(sh), "0room") msglog.Base_add("房").L(`I: `, sh...)