From: Vsevolod Stakhov Date: Sat, 13 Feb 2016 14:35:56 +0000 (+0000) Subject: Add aliases for task:get_from_ip X-Git-Tag: 1.1.4~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1d1beded832d20f7a599fc761ce577cfa5b6d460;p=rspamd.git Add aliases for task:get_from_ip - task:get_addr - task:get_from_addr - task:get_ip --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 6e644b0da..184be4205 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -560,6 +560,9 @@ static const struct luaL_reg tasklib_m[] = { LUA_INTERFACE_DEF (task, get_from), LUA_INTERFACE_DEF (task, get_user), LUA_INTERFACE_DEF (task, set_user), + {"get_addr", lua_task_get_from_ip}, + {"get_ip", lua_task_get_from_ip}, + {"get_from_addr", lua_task_get_from_ip}, LUA_INTERFACE_DEF (task, get_from_ip), LUA_INTERFACE_DEF (task, set_from_ip), LUA_INTERFACE_DEF (task, get_from_ip_num),