thelounge/lib/plugins/inputs/topic.js
2014-07-04 00:49:15 +02:00

12 lines
243 B
JavaScript

module.exports = function(network, chan, cmd, args) {
if (cmd != "topic") {
return;
}
var msg = "TOPIC";
msg += " " + chan.name;
msg += args[0] ? (" :" + args.join(" ")) : "";
var irc = network.irc;
irc.write(msg);
};