Fix the /topic command

This commit is contained in:
Maxime Poulin 2016-03-26 16:25:02 -04:00
parent 338116a01e
commit 6c5ade3fe3

View file

@ -1,11 +1,8 @@
exports.commands = ["topic"]; exports.commands = ["topic"];
exports.input = function(network, chan, cmd, args) { exports.input = function(network, chan, cmd, args) {
var msg = chan.name;
msg += args[0] ? (" :" + args.join(" ")) : "";
var irc = network.irc; var irc = network.irc;
irc.raw("TOPIC", msg); irc.raw("TOPIC", chan.name, args.join(" "));
return true; return true;
}; };