aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-26 16:03:10 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-26 16:03:10 +0000
commit78dfbf6a7c4dee74d717e85f7c11633832937a6f (patch)
tree48572559fc839473bc672e018a82f8a1cb033c15 /src/lua
parenta97a4d9bd0d7e0a19acb8fcce8294bd67f5b7351 (diff)
downloadrspamd-78dfbf6a7c4dee74d717e85f7c11633832937a6f.tar.gz
rspamd-78dfbf6a7c4dee74d717e85f7c11633832937a6f.zip
Support redis notices.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_redis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 2d27fd6e1..d9d9702dd 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -111,16 +111,16 @@ lua_redis_push_reply (lua_State *L, const redisReply *r)
lua_newuserdata (L, sizeof (gpointer));
break;
case REDIS_REPLY_STRING:
+ case REDIS_REPLY_STATUS:
lua_pushlstring (L, r->str, r->len);
break;
- case REDIS_REPLY_ARRAY: {
+ case REDIS_REPLY_ARRAY:
lua_createtable (L, r->elements, 0);
for (i = 0; i < r->elements; ++i) {
lua_redis_push_reply (L, r->element[i]);
lua_rawseti (L, -2, i + 1); /* Store sub-reply */
}
break;
- }
default: /* should not happen */
msg_info ("unknown reply type: %d", r->type);
break;