From e45cfbf02ca6f30750e5b268eb241593ffec6fbd Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Wed, 19 Apr 2017 12:27:26 -0700 Subject: [PATCH] Use irc-framework setTopic() for 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 8e2327cc..ef7a7cb4 100644 --- a/src/plugins/inputs/topic.js +++ b/src/plugins/inputs/topic.js @@ -14,9 +14,6 @@ exports.input = function(network, chan, cmd, args) { return; } - - var irc = network.irc; - irc.raw("TOPIC", chan.name, args.join(" ")); - + network.irc.setTopic(chan.name, args.join(" ")); return true; };