hardlounge/src/plugins/inputs/topic.js
2015-10-26 03:01:47 +01:00

13 lines
230 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);
};