From 815904ef41627bd500ea8bf648140ebb0fb992ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 26 Sep 2018 14:06:51 +0800 Subject: [PATCH] Update main.js --- main.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index ae30d5c..adb1413 100644 --- a/main.js +++ b/main.js @@ -340,10 +340,24 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects) name: 'add', obj: objects[id] }); + newObjects.push(id); - - } + + if (regs.length) { + tasks.push({ + id: regName, + name: 'add', + obj: { + type: 'channel', + common: { + name: regFullName + }, + native: {} + } + }); + } + } function sortByAddress(a, b) {