From c9d6dc5fe4f6c62f762c696999b212b5bf32a615 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 16 Apr 2025 23:05:13 +0500 Subject: upd: renamed function to array_contains_int --- bot/src/commands/lua.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index 369937c..aa32b04 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -563,8 +563,8 @@ namespace bot::command::lua { } void add_array_library(std::shared_ptr state) { - state->set_function("array_contains", [](const sol::table &haystack, - const long long &needle) { + state->set_function("array_contains_int", [](const sol::table &haystack, + const long long &needle) { bool o = false; for (auto &[_, v] : haystack) { if (v.is()) { -- cgit v1.2.3