This commit is contained in:
Flummi 2016-11-18 07:57:36 +01:00
parent 92c4e2ae36
commit 17b014c650

View File

@ -230,7 +230,7 @@ self.levelToModes = level => {
self.getcfg = (kat, cb) => {
// main, websrv, irc
var out = {};
self.sql.query("select * from `f0ck`.`cfg` where `class` = ?"+(arguments[2]?"&& `key` = '"+arguments[2]:"")')", kat, (err, rows) => {
self.sql.query("select * from `f0ck`.`cfg` where `class` = ?"+(arguments[2]?"&& `key` = '"+arguments[2]+"'":""), kat, (err, rows) => {
if(err || !rows)
cb(err);
else {