Flummi = doof

This commit is contained in:
Flummi 2017-03-22 01:46:31 +01:00
parent f7f2f6d7ed
commit aaf49d6ca7

View File

@ -11,8 +11,13 @@ module.exports = (lib) => {
"not": []
};
for(let i = 0; i < args.length; i++)
params[(args[i].charAt(0) === "!"?"not":"in")].push(args[i].replace("!"));
for(let i = 0; i < args.length; i++) {
let name = args[0];
if(name.charAt(0) === "!")
params.not.add(name.slice(1));
else
params.in.add(name);
}
let query = "select `id`,`username` from `f0ck`.`items` ";