hardlounge/src/plugins/inputs/topic.js
2014-08-05 00:48:14 -07:00

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