From 6c5ade3fe3fdefe6a14e83f4a0da17d841038967 Mon Sep 17 00:00:00 2001 From: Maxime Poulin Date: Sat, 26 Mar 2016 16:25:02 -0400 Subject: [PATCH] Fix the /topic command --- src/plugins/inputs/topic.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; };