From f50d3836707431183da00e3f2f3084bb0dc9659c Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 1 May 2018 11:36:10 +0300 Subject: [PATCH] Fix channel and ban lists in context menu not working Fixes #2400 --- client/js/contextMenuFactory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/contextMenuFactory.js b/client/js/contextMenuFactory.js index 10cf0ec0..526e470a 100644 --- a/client/js/contextMenuFactory.js +++ b/client/js/contextMenuFactory.js @@ -247,7 +247,7 @@ function addEditNetworkItem() { function addChannelListItem() { function list(itemData) { socket.emit("input", { - target: itemData, + target: parseInt(itemData, 10), text: "/list", }); } @@ -264,7 +264,7 @@ function addChannelListItem() { function addBanListItem() { function banlist(itemData) { socket.emit("input", { - target: itemData, + target: parseInt(itemData, 10), text: "/banlist", }); }