hardlounge/lib/models/chan.js
2014-04-23 20:44:44 +02:00

14 lines
204 B
JavaScript

var _ = require("lodash");
module.exports = Chan;
function Chan(attr) {
_.merge(this, _.extend({
id: global.id = ++global.id || 1,
name: "",
type: "",
messages: [],
users: [],
}, attr));
};