From 33e20ef93d5f96c82a45c32931f1a41f330d4acc Mon Sep 17 00:00:00 2001 From: Anders Rune Jensen Date: Tue, 2 May 2017 21:59:04 +0200 Subject: [PATCH] Handle unsubscription from channel --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 2e8e0c2..c58adab 100644 --- a/index.js +++ b/index.js @@ -617,6 +617,8 @@ function render(opts, c) return ' connected to a pub' else if (c.type == 'channel' && c.subscribed) return ' subscribed to channel #' + c.channel + "" + else if (c.type == 'channel' && !c.subscribed) + return ' unsubscribed from channel #' + c.channel + "" else return renderDefault(c) }