mirror of
https://github.com/thelounge/thelounge
synced 2024-12-25 11:53:07 +00:00
19 lines
302 B
JavaScript
19 lines
302 B
JavaScript
var _ = require("lodash");
|
|
|
|
module.exports = Chan;
|
|
|
|
Chan.Type = {
|
|
CHANNEL: "channel",
|
|
LOBBY: "lobby",
|
|
QUERY: "query"
|
|
};
|
|
|
|
function Chan(attr) {
|
|
_.merge(this, _.extend({
|
|
id: global.id = ++global.id || 1,
|
|
type: Chan.Type.CHANNEL,
|
|
name: "",
|
|
messages: [],
|
|
users: []
|
|
}));
|
|
}
|