mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-07 08:12:19 +02:00
15 lines
218 B
JavaScript
15 lines
218 B
JavaScript
var _ = require("lodash");
|
|
|
|
module.exports = User;
|
|
|
|
function User(attr) {
|
|
// TODO: Remove this
|
|
attr.name = attr.nick;
|
|
attr.mode = attr.modes[0] || "";
|
|
|
|
_.merge(this, _.extend({
|
|
mode: "",
|
|
name: ""
|
|
}, attr));
|
|
}
|