thelounge/lib/plugins/irc-events/motd.js

20 lines
427 B
JavaScript
Raw Normal View History

2014-06-29 19:41:02 +00:00
var Msg = require("../../models/msg");
module.exports = function(irc, network) {
var client = this;
irc.on("motd", function(data) {
2014-06-30 01:20:54 +00:00
//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
// });
//});
2014-06-29 19:41:02 +00:00
});
2014-06-26 23:05:47 +00:00
};