/** * Assigns whois and stats at the bottom of the index page */ protected function assign_whois() { if ($this->config['mchat_whois'] || $this->config['mchat_stats_index'] && $this->user->data['user_mchat_stats_index']) { $mchat_stats = $this->functions_mchat->mchat_active_users(); $this->template->assign_vars(array('MCHAT_INDEX_STATS' => $this->config['mchat_stats_index'] && $this->user->data['user_mchat_stats_index'], 'MCHAT_USERS_COUNT' => $mchat_stats['mchat_users_count'], 'MCHAT_USERS_LIST' => !empty($mchat_stats['online_userlist']) ? $mchat_stats['online_userlist'] : '', 'MCHAT_ONLINE_EXPLAIN' => $mchat_stats['refresh_message'])); } }