2016-03-14 04:21:42 +00:00
|
|
|
exports.commands = ["topic"];
|
2015-09-30 22:39:57 +00:00
|
|
|
|
2016-03-14 04:21:42 +00:00
|
|
|
exports.input = function(network, chan, cmd, args) {
|
2014-09-13 21:29:45 +00:00
|
|
|
var msg = "TOPIC";
|
|
|
|
msg += " " + chan.name;
|
|
|
|
msg += args[0] ? (" :" + args.join(" ")) : "";
|
2015-09-30 22:39:57 +00:00
|
|
|
|
2014-09-13 21:29:45 +00:00
|
|
|
var irc = network.irc;
|
|
|
|
irc.write(msg);
|
2016-03-06 09:24:56 +00:00
|
|
|
|
|
|
|
return true;
|
2014-09-13 21:29:45 +00:00
|
|
|
};
|