diff --git a/src/plugins/inputs/topic.js b/src/plugins/inputs/topic.js index 7e9253c0..d9e66852 100644 --- a/src/plugins/inputs/topic.js +++ b/src/plugins/inputs/topic.js @@ -1,11 +1,8 @@ exports.commands = ["topic"]; exports.input = function(network, chan, cmd, args) { - var msg = chan.name; - msg += args[0] ? (" :" + args.join(" ")) : ""; - var irc = network.irc; - irc.raw("TOPIC", msg); + irc.raw("TOPIC", chan.name, args.join(" ")); return true; };