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.2.0~244 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=98e8f25606f101726723244ad3702d29d1f8b834;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 3731b059e..6c56f22ff 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -576,6 +576,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),