Skip to content

Commit 249259b

Browse files
committed
feat: 从更基础的接口拦截聊天复制
1 parent 9fda9f0 commit 249259b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Boilerplate_!Base/src/lib/Chat.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ end
199199

200200
-- 复制聊天行
201201
function X.CopyChatLine(hTime, bTextEditor, bRichText)
202+
if X.IS_REMAKE and GetCurrentTime() < 1718578800 and GetCurrentTime() > 1718146800 then
203+
return X.OutputSystemAnnounceMessage(_L['First week of WuJie, chat copy not available.'])
204+
end
202205
local edit = X.GetChatInput()
203206
if bTextEditor then
204207
edit = X.UI.OpenTextEditor():Find('.WndEdit')[1]
@@ -367,9 +370,6 @@ local ChatLinkEvents = {
367370
if not link then
368371
link = element
369372
end
370-
if X.IS_REMAKE and GetCurrentTime() < 1718578800 and GetCurrentTime() > 1718146800 then
371-
return X.OutputSystemAnnounceMessage(_L['First week of WuJie, chat copy not available.'])
372-
end
373373
X.CopyChatLine(link, IsCtrlKeyDown(), IsCtrlKeyDown() and IsShiftKeyDown())
374374
end,
375375
OnCopyMClick = function(element, link)

0 commit comments

Comments
 (0)