\n". "Either restore your previous config/config.php or start with a fresh database.
\n"); } /* Connect now */ try { $rpc = new UnrealIRCd\Connection ( "wss://$host:$port", "$rpc_user:$rpc_password", ["tls_verify" => $tls_verify] ); } catch (Exception $e) { echo "Unable to connect to UnrealIRCd: ".$e->getMessage() . "

"; echo "Verify your connection details in config.php (rpc user, rpc password, host) and ". "verify your UnrealIRCd configuration (listen block with listen::options::rpc and ". "an rpc-user block with the correct IP allowed and the correct username and password)."; throw $e; } $user = unreal_get_current_user(); if ($user) { /* Set issuer for all the RPC commands */ $rpc->rpc()->set_issuer($user->username); } } connect_to_ircd();