mirror of
https://github.com/thelounge/thelounge
synced 2024-12-25 03:43:12 +00:00
19 lines
427 B
JavaScript
19 lines
427 B
JavaScript
var Msg = require("../../models/msg");
|
|
|
|
module.exports = function(irc, network) {
|
|
var client = this;
|
|
irc.on("motd", function(data) {
|
|
//var lobby = network.channels[0];
|
|
//data.motd.forEach(function(text) {
|
|
// var msg = new Msg({
|
|
// type: Msg.Type.MOTD,
|
|
// text: text
|
|
// });
|
|
// lobby.messages.push(msg);
|
|
// client.emit("msg", {
|
|
// chan: lobby.id,
|
|
// msg: msg
|
|
// });
|
|
//});
|
|
});
|
|
};
|