# HG changeset patch # User Matthew Wild # Date 1280596058 -3600 # Node ID c5215e30b6eff2a6f9b33bfa5fd451909db5178d # Parent 1ec09b2f61c35b423061ac8b2b6ecae7230fc31d Assume that a command_handler returning nil succeeded diff -r 1ec09b2f61c3 -r c5215e30b6ef memcached.lua --- a/memcached.lua Sat Jul 31 16:44:23 2010 +0100 +++ b/memcached.lua Sat Jul 31 18:07:38 2010 +0100 @@ -17,7 +17,7 @@ local command_handler = command_handlers[command]; if command_handler then local ok, err = command_handler(conn, line:sub(params_pos)); - if not ok then + if ok == false then conn:write("CLIENT_ERROR "..err.."\r\n"); end elseif command then