thelounge/lib/models/chan.js
2014-06-29 03:08:28 +02:00

21 lines
293 B
JavaScript

var _ = require("lodash");
module.exports = Chan;
Chan.Type = {
CHANNEL: "channel",
LOBBY: "lobby",
QUERY: "query"
};
var id = 0;
function Chan(attr) {
_.merge(this, _.extend({
id: id++,
type: Chan.Type.CHANNEL,
name: "",
messages: [],
users: []
}));
}