Solve error on some node versions!

Worked for me! This solves the following (frequent) error:
`TypeError: _this2.print is not a function` on Windows.
This commit is contained in:
GabrielTK 2016-09-28 19:06:41 -03:00 committed by GitHub
parent 1d0aad00ed
commit 26b9e9b197

View File

@ -125,7 +125,7 @@ export function playerIsRegistered(email) {
export function registerPlayer(player) {
return new Promise((resolve) => {
this.db.query(`INSERT INTO ${CFG.MYSQL_USERS_TABLE} SET email=?, username=? `, [player.email, player.username], (e, res) => {
if (e) return this.print(e, 31);
if (e) return print(e, 31);
resolve();
});
});
@ -177,4 +177,4 @@ export function kickPlayer(name) {
}
else print(`Failed to kick ${name} from the server!`, 31);
}
}