From 4cfbba635d8d159f21cb7f2ceb4074d6142da7c5 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 12 May 2017 12:27:48 -1000 Subject: [PATCH] Fix handling channel unsubscription --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c7aab4a..1f5e95f 100644 --- a/index.js +++ b/index.js @@ -148,7 +148,7 @@ exports.init = function (sbot, config) { if (msg.value.content.subscribed) channelSubscriptions[msg.value.content.channel] = 1 else - delete following[msg.value.content.channel] + delete channelSubscriptions[msg.value.content.channel] } })