From 3b836d3dff02f6aac5042fc76acdfeae53d7c9a7 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 6 Feb 2023 20:19:25 +0800 Subject: [PATCH] SessionCtl // Automatically suppresses farts unless today is April 1st. --- Source/Modules/SessionCtl_Core.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Modules/SessionCtl_Core.swift b/Source/Modules/SessionCtl_Core.swift index 23785d62..ceb3149a 100644 --- a/Source/Modules/SessionCtl_Core.swift +++ b/Source/Modules/SessionCtl_Core.swift @@ -218,6 +218,12 @@ extension SessionCtl { isServingIMEItself = Bundle.main.bundleIdentifier == senderBundleID } } + DispatchQueue.main.async { + // 自動啟用肛塞(廉恥模式),除非這一天是愚人節。 + if !Date.isTodayTheDate(from: 0401), !PrefMgr.shared.shouldNotFartInLieuOfBeep { + PrefMgr.shared.shouldNotFartInLieuOfBeep = true + } + } DispatchQueue.main.async { [self] in if isActivated { return }