hardlounge/src/models/user.js

15 lines
218 B
JavaScript
Raw Normal View History

2014-09-13 21:29:45 +00:00
var _ = require("lodash");
module.exports = User;
function User(attr) {
// TODO: Remove this
attr.name = attr.nick;
attr.mode = attr.modes[0] || "";
2014-09-13 21:29:45 +00:00
_.merge(this, _.extend({
mode: "",
name: ""
}, attr));
}