Comparison

plugins/mod_storage_sql.lua @ 5132:ce6546f867f9

mod_storage_sql: Remove obsolete comment
author Matthew Wild <mwild1@gmail.com>
date Wed, 19 Sep 2012 12:09:27 +0100
parent 5130:051d352ed03c
child 5133:1443d1c37c6c
comparison
equal deleted inserted replaced
5131:0cd962661fa2 5132:ce6546f867f9
372 return setmetatable({ store = store }, keyval_store); 372 return setmetatable({ store = store }, keyval_store);
373 end 373 end
374 return nil, "unsupported-store"; 374 return nil, "unsupported-store";
375 end 375 end
376 376
377 function driver:stores(username) -- Not to be confused with the list store type 377 function driver:stores(username)
378 local sql = "SELECT DISTINCT `store` FROM `prosody` WHERE `host`=? AND `user`" .. 378 local sql = "SELECT DISTINCT `store` FROM `prosody` WHERE `host`=? AND `user`" ..
379 (username == true and "!=?" or "=?"); 379 (username == true and "!=?" or "=?");
380 if username == true or not username then 380 if username == true or not username then
381 username = ""; 381 username = "";
382 end 382 end