Browse Source

[Minor] Fix fuzzy_unlearn_handler when a flag is specified

Issue: #4531
tags/3.6
Vsevolod Stakhov 11 months ago
parent
commit
5d1c4e0143
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/plugins/fuzzy_check.c

+ 1
- 1
src/plugins/fuzzy_check.c View File

@@ -3867,7 +3867,7 @@ fuzzy_lua_unlearn_handler (lua_State *L)
struct fuzzy_ctx *fuzzy_module_ctx = fuzzy_get_context (task->cfg);

if (lua_type (L, 2) == LUA_TNUMBER) {
flag = lua_tonumber (L, 1);
flag = lua_tointeger (L, 2);
}
else if (lua_type (L, 2) == LUA_TSTRING) {
struct fuzzy_rule *rule;

Loading…
Cancel
Save