configure: Replaces tabs with spaces in --help
[prosody.git] / util / datamanager.lua
index 2290d5651f7598325176c2a381ae56f4bfabde24..383e738fa1d93c1b104e284cf9a044d5ef0f6fcc 100644 (file)
@@ -281,7 +281,7 @@ local type_map = {
 
 function users(host, store, typ)
        typ = type_map[typ or "keyval"];
-       local store_dir = format("%s/%s/%s", data_path, encode(host), encode(store));
+       local store_dir = format("%s/%s/%s", data_path, encode(host), store);
 
        local mode, err = lfs.attributes(store_dir, "mode");
        if not mode then
@@ -340,7 +340,6 @@ end
 
 function purge(username, host)
        local host_dir = format("%s/%s/", data_path, encode(host));
-       local deleted = 0;
        local errs = {};
        for file in lfs.dir(host_dir) do
                if lfs.attributes(host_dir..file, "mode") == "directory" then