\n". "Either restore your previous config/config.php or start with a fresh database.
\n"); die; } $user = unreal_get_current_user(); if ($user) { /* Set issuer for all the RPC commands */ $options['issuer'] = $user->username; } /* Connect now */ try { $rpc = new UnrealIRCd\Connection ( "wss://$host:$port", "$rpc_user:$rpc_password", $options ); } catch (Exception $e) { if ($is_api_page) return; Message::Fail("Unable to connect to UnrealIRCd: ".$e->getMessage() . "
". "Verify that the connection details from Settings - RPC Servers match the ones in UnrealIRCd ". "and that UnrealIRCd is up and running"); throw $e; } } connect_to_ircd();