hardlounge/src/plugins/inputs/topic.js

13 lines
231 B
JavaScript
Raw Normal View History

2014-09-13 21:29:45 +00:00
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);
};