update
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ func (ct *Chat) Push(content interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NotifyMasters(content string) {
|
func NotifyMasters(content string) {
|
||||||
if sillyGirl.GetBool("ignore_notify", true) == true {
|
if sillyGirl.GetBool("ignore_notify", false) == true {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, class := range []string{"tg", "qq"} {
|
for _, class := range []string{"tg", "qq"} {
|
||||||
|
|||||||
+3
-3
@@ -17,9 +17,9 @@ func init() {
|
|||||||
if v != "" {
|
if v != "" {
|
||||||
vv := strings.Split(v, " ")
|
vv := strings.Split(v, " ")
|
||||||
tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2])
|
tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2])
|
||||||
if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { //
|
if tp == "fake" { //&& sillyGirl.GetBool("update_notify", false) == true { //
|
||||||
time.Sleep(time.Second * 10)
|
// time.Sleep(time.Second * 10)
|
||||||
NotifyMasters("自动更新完成。")
|
// NotifyMasters("自动更新完成。")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
msg := "重启完成。"
|
msg := "重启完成。"
|
||||||
|
|||||||
Reference in New Issue
Block a user