diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-16 18:37:50 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-16 18:37:50 +0300 |
commit | 4b1dbdccc7067ff71565b48c1e9722c152a83a4a (patch) | |
tree | fb132da61adc0b98e725a17ecd266a5cfb6da14d /src/lua/lua_redis.c | |
parent | b272d240f712e15a93478db124cbf4bd8f7496af (diff) | |
download | rspamd-4b1dbdccc7067ff71565b48c1e9722c152a83a4a.tar.gz rspamd-4b1dbdccc7067ff71565b48c1e9722c152a83a4a.zip |
Add expire and whitelist options to ip_score plugin.
Some fixes to expiration of keys (still need to be reworked however).
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r-- | src/lua/lua_redis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index c427e60ed..4d2469e5f 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -143,6 +143,9 @@ lua_redis_push_data (const redisReply *r, struct lua_redis_userdata *ud) else if (r->type == REDIS_REPLY_STATUS) { lua_pushlstring (ud->L, r->str, r->len); } + else if (r->type == REDIS_REPLY_NIL) { + lua_pushnil (ud->L); + } else { msg_info ("bad type is passed: %d", r->type); lua_pushnil (ud->L); |