summaryrefslogtreecommitdiff
path: root/Cato/init_code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Cato/init_code.lua')
-rw-r--r--Cato/init_code.lua8
1 files changed, 8 insertions, 0 deletions
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