public static function jupe_command($nick, $ircdata = array()) { $server = $ircdata[0]; $numeric = $ircdata[1]; // grab the ircdata, we only really need the server // from here, and numeric. if (trim($server) == '' || trim($numeric) == '') { services::communicate(core::$config->operserv->nick, $nick, &operserv::$help->OS_INVALID_SYNTAX_RE, array('help' => 'JUPE')); return false; } // is the server value empty? // if it is we tell them that it's the invalid syntax if ($server == core::$config->server->name || isset(core::$servers[$server])) { core::alog(core::$config->operserv->nick . ': WARNING ' . $nick . ' tried to jupe ' . $server); core::alog('jupe_command(): WARNING ' . $nick . ' tried to jupe ' . $server, 'BASIC'); // log what we need to log. } else { ircd::$jupes[$server] = $server; core::$servers[$server] = $server; // add it to the jupes & servers array ircd::init_server($server, core::$config->conn->password, 'Juped by ' . $nick, $numeric); core::alog(core::$config->operserv->nick . ': WARNING ' . $nick . ' juped ' . $server); ircd::globops(core::$config->operserv->nick, $nick . ' juped ' . $server); core::alog('jupe_command(): ' . $server . ' juped', 'BASIC'); // log what we need to log. } // ok, so we're ready to go, jupe it }
public function boot_server() { if (!self::$booted) { self::$booted = true; ircd::init_server(self::$config->server->name, self::$config->conn->password, self::$config->server->desc, self::$config->server->numeric); // init the server foreach (self::$service_bots as $bot) { require BASEPATH . '/core/services/' . $bot . '.php'; $this->{$bot} = new $bot(); } // start our bots up. foreach (self::$config->core_modules as $id => $module) { modules::load_module('core_' . $module, $module . '.core.php'); } // we load core modules before the bots, incase there // is a module that changes an existing function w/e timer::init(); // setup the timer, socket_blocking to 0 is required. } }