Binato/server/util/getUserById.js

6 lines
196 B
JavaScript
Raw Normal View History

2020-08-27 13:09:35 +01:00
module.exports = function(id) {
2021-05-15 00:24:39 +01:00
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
}
}