mirror of
https://github.com/thelounge/thelounge
synced 2024-12-23 19:03:08 +00:00
12 lines
243 B
JavaScript
12 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);
|
|
};
|