Binato/server/util/getUserById.js

6 lines
175 B
JavaScript
Raw Normal View History

2020-08-27 13:09:35 +01:00
module.exports = function(id) {
for (let i = 0; i < global.userKeys.length; i++) {
if (global.users[global.userKeys[i]].id == id)
return global.users[userKeys[i]];
}
2020-08-27 13:09:35 +01:00
}