From 476f7099b37b88382ecb300404f8aef0d4ae2ae6 Mon Sep 17 00:00:00 2001 From: sylvanaar Date: Sun, 31 May 2020 02:29:49 -0700 Subject: [PATCH] History: Fix issue where secure commands weren't being filtered from the editbox history --- modules/History.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/History.lua b/modules/History.lua index c44e589f..6bbdc2db 100644 --- a/modules/History.lua +++ b/modules/History.lua @@ -408,8 +408,8 @@ Prat:AddModuleToLoad(function() end local editBoxText = editBox:GetText(); - if (strlen(editBoxText) > 0 and not IsSecureCmd(editBoxText)) then - text = (header and (text .. " ") or "") .. editBox:GetText(); + if (strlen(editBoxText) > 0 and not IsSecureCmd(editBoxText:match("^/[%a%d_]+"))) then + text = (header and (text .. " ") or "") .. editBoxText; self:saveLine(text, editBox) end end