aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-09-27 12:58:01 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-09-27 12:58:01 +0100
commit6ed56a333ca7ef1b2a5a007d67fda0759af1a280 (patch)
treebcab0b8a6e1720e5c88aebd423f758142cc03903 /src/lua
parent51e57d2c7201a6cab0e548eac8a5923c02eb603c (diff)
downloadrspamd-6ed56a333ca7ef1b2a5a007d67fda0759af1a280.tar.gz
rspamd-6ed56a333ca7ef1b2a5a007d67fda0759af1a280.zip
[Minor] Make API consistent
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index e3f8b2e57..0b4d208b4 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -795,11 +795,11 @@ LUA_FUNCTION_DEF(config, get_cpu_flags);
LUA_FUNCTION_DEF(config, has_torch);
/***
- * @method rspamd_config:is_mime_utf()
+ * @method rspamd_config:is_mime_utf8()
* Returns true if Rspamd is configured to use UTF for mime processing
* @return {boolean} true if mime utf is enabled
*/
-LUA_FUNCTION_DEF(config, is_mime_utf);
+LUA_FUNCTION_DEF(config, is_mime_utf8);
/***
* @method rspamd_config:experimental_enabled()
@@ -928,7 +928,7 @@ static const struct luaL_reg configlib_m[] = {
LUA_INTERFACE_DEF(config, set_peak_cb),
LUA_INTERFACE_DEF(config, get_cpu_flags),
LUA_INTERFACE_DEF(config, has_torch),
- LUA_INTERFACE_DEF(config, is_mime_utf),
+ LUA_INTERFACE_DEF(config, is_mime_utf8),
LUA_INTERFACE_DEF(config, experimental_enabled),
LUA_INTERFACE_DEF(config, load_ucl),
LUA_INTERFACE_DEF(config, parse_rcl),
@@ -4237,7 +4237,7 @@ lua_config_has_torch(lua_State *L)
}
static int
-lua_config_is_mime_utf(lua_State *L)
+lua_config_is_mime_utf8(lua_State *L)
{
LUA_TRACE_POINT;
struct rspamd_config *cfg = lua_check_config(L, 1);