diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:59:06 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:59:06 +0200 |
commit | 2b7552ded15dee1606c956f25009b76c84c839db (patch) | |
tree | bb48175dcec66388c28b93aa8d0fa539ec51465f /Cato | |
parent | 2085ff0f36d698613f361fb18885b6887be0e861 (diff) | |
download | luaatc_envs-2b7552ded15dee1606c956f25009b76c84c839db.tar.gz luaatc_envs-2b7552ded15dee1606c956f25009b76c84c839db.tar.bz2 luaatc_envs-2b7552ded15dee1606c956f25009b76c84c839db.zip |
State at 2023-05-08
Diffstat (limited to 'Cato')
-rw-r--r-- | Cato/init_code.lua | 8 |
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 |