Comparison

core/storagemanager.lua @ 7947:24170d74b00b

core: Split some very long lines [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 04 Mar 2017 17:49:48 +0100
parent 7645:d7b1bc069c12
child 7950:f91e7ec9654e
child 7994:3325ac397f17
comparison
equal deleted inserted replaced
7945:1f4a0e0b7167 7947:24170d74b00b
70 found_sql2 = true; 70 found_sql2 = true;
71 end 71 end
72 end 72 end
73 end 73 end
74 if found_sql2 then 74 if found_sql2 then
75 log("error", "The temporary 'sql2' storage module has now been renamed to 'sql', please update your config file: https://prosody.im/doc/modules/mod_storage_sql2"); 75 log("error", "The temporary 'sql2' storage module has now been renamed to 'sql', "
76 .."please update your config file: https://prosody.im/doc/modules/mod_storage_sql2");
76 end 77 end
77 return storage_config; 78 return storage_config;
78 end 79 end
79 80
80 local function get_driver(host, store) 81 local function get_driver(host, store)
178 if not purged[driver_name] then 179 if not purged[driver_name] then
179 local driver = get_driver(host, store); 180 local driver = get_driver(host, store);
180 if driver.purge then 181 if driver.purge then
181 purged[driver_name] = driver:purge(user); 182 purged[driver_name] = driver:purge(user);
182 else 183 else
183 log("warn", "Storage driver %s does not support removing all user data, you may need to delete it manually", driver_name); 184 log("warn", "Storage driver %s does not support removing all user data, "
185 .."you may need to delete it manually", driver_name);
184 end 186 end
185 end 187 end
186 end 188 end
187 end 189 end
188 get_driver(host):purge(user); -- and the default driver 190 get_driver(host):purge(user); -- and the default driver