hardlounge/lib/plugins/irc-events/motd.js
Mattias Erming f3f3858663 Render chat
2014-06-30 03:20:54 +02:00

20 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
// });
//});
});
};