From a756361e95e45d93aad9dcabc2c692f5a9a521f6 Mon Sep 17 00:00:00 2001 From: Wenrui LI Date: Mon, 5 Dec 2022 13:23:03 +0800 Subject: [PATCH] * remove zentao bot init flag since xuanbot now maintains init states. --- xuanxuan/extension/xuan/im/ext/bot/zentao.bot.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/xuanxuan/extension/xuan/im/ext/bot/zentao.bot.php b/xuanxuan/extension/xuan/im/ext/bot/zentao.bot.php index 9b894ff4ea..abcaf6f5a7 100644 --- a/xuanxuan/extension/xuan/im/ext/bot/zentao.bot.php +++ b/xuanxuan/extension/xuan/im/ext/bot/zentao.bot.php @@ -25,14 +25,6 @@ class zentaoBot extends xuanBot */ public $commands = array(); - /** - * Init status. - * - * @var boolean - * @access private - */ - private $inited = false; - /** * Construct function, load lang of zentao and setup commands. * @@ -56,8 +48,6 @@ class zentaoBot extends xuanBot */ public function init() { - if($this->inited) return; - $this->lang = $this->im->lang->im->bot->zentaoBot; foreach(array('view', 'start', 'close', 'finish') as $command)