From 2b7552ded15dee1606c956f25009b76c84c839db Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:59:06 +0200 Subject: State at 2023-05-08 --- Cato/init_code.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Cato/init_code.lua (limited to 'Cato/init_code.lua') diff --git a/Cato/init_code.lua b/Cato/init_code.lua new file mode 100644 index 0000000..dbf0941 --- /dev/null +++ b/Cato/init_code.lua @@ -0,0 +1,8 @@ +F.has_rc = function(query,rc_list) -- query = string, single entry + for word in rc_list:gmatch("[^%s]+") do + if word == query then return true end + end + return false +end + +F.get_rc_safe = function() return get_rc() or "" end \ No newline at end of file -- cgit v1.2.3