/** * Handles the SERVER command * * @param string $input * @param array<string> $inputEx * @return void */ public static function SERVER($input, $inputEx) { Services::getEvent()->fire(Services::getConnection()->getProtocol(), 'serverCreated', array('name' => $inputEx[2])); Services::getConnection()->getProtocol()->serverList[] = $inputEx[2]; }
/** * @see lib/modules/ExtensionModule::registerEvents() */ public function registerEvents() { parent::registerEvents(); Services::getEvent()->registerEvent($this, 'handleJoin', 'Protocol', 'channelJoined'); }
/** * @see lib/modules/ExtensionModule::registerEvents() */ public function registerEvents() { parent::registerEvents(); Services::getEvent()->registerEvent($this, 'handleKick', 'Protocol', 'userKicked'); }
/** * Shuts down the connection */ public function shutdown() { Services::getEvent()->fire($this, 'shutdown'); // Shutdown server connection if existant if (!feof($this->socket)) { $this->protocol->shutdownConnection(); } }