2020-06-29 03:51:17 -04:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const Msg = require("../../models/msg");
|
|
|
|
|
|
|
|
module.exports = function (irc, network) {
|
|
|
|
const client = this;
|
|
|
|
|
|
|
|
irc.on("info", function (data) {
|
|
|
|
const lobby = network.channels[0];
|
|
|
|
|
|
|
|
if (data.info) {
|
|
|
|
const msg = new Msg({
|
|
|
|
type: Msg.Type.MONOSPACE_BLOCK,
|
|
|
|
command: "info",
|
|
|
|
text: data.info,
|
|
|
|
});
|
2020-08-14 07:26:03 -04:00
|
|
|
lobby.pushMessage(client, msg, true);
|
2020-06-29 03:51:17 -04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|