thelounge/src/plugins/inputs/topic.js

12 lines
221 B
JavaScript
Raw Normal View History

exports.commands = ["topic"];
2015-10-01 00:39:57 +02:00
exports.input = function(network, chan, cmd, args) {
2016-03-08 14:36:25 +01:00
var msg = chan.name;
2014-09-13 23:29:45 +02:00
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;
2016-03-08 14:36:25 +01:00
irc.raw("TOPIC", msg);
2016-03-06 10:24:56 +01:00
return true;
2014-09-13 23:29:45 +02:00
};