/** * fetches guild info * */ function checkGuildInfo($name = false, $server = false, $region = false) { global $roster, $addon; include_once ROSTER_LIB . 'armory.class.php'; $armory = new RosterArmory(); $content = $this->_parseData($armory->fetchGuild($name, $region, $server, $fetch_type = 'array')); //$this->getguilddata( $roster->data['guild_name'], $this->region, $this->server, $fetch_type='array' );//$this->fetchGuild( $this->memberName, $roster->config['locale'], $this->server ); if ($this->_xcheckarray($content, array('guildInfo', 'guildHeader'))) { $this->_debug(1, true, 'Checked guild on existence', 'OK'); return true; } else { $this->_debug(1, false, 'Checked guild on existence', 'Failed'); return false; } }