summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/lua.cpp')
-rw-r--r--bot/src/commands/lua.cpp4
1 files 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<sol::state> 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<long long>()) {