thelounge/src/plugins/inputs/topic.js

13 lines
230 B
JavaScript
Raw Normal View History

2014-09-13 23:29:45 +02:00
module.exports = function(network, chan, cmd, args) {
2015-10-01 00:39:57 +02:00
if (cmd !== "topic") {
2014-09-13 23:29:45 +02:00
return;
}
2015-10-01 00:39:57 +02:00
2014-09-13 23:29:45 +02:00
var msg = "TOPIC";
msg += " " + chan.name;
msg += args[0] ? (" :" + args.join(" ")) : "";
2015-10-01 00:39:57 +02:00
2014-09-13 23:29:45 +02:00
var irc = network.irc;
irc.write(msg);
};