Skip to content

OnBoomboxStationValidate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnBoomboxStationValidate( string url )
{
    Puts( "OnBoomboxStationValidate works!" );
}

Location

  • BoomBox::IsStationValid(string url)
csharp
private static bool IsStationValid(string url)
{
	BoomBox.ParseServerUrlList();
	object returnvar = Interface.CallHook("OnBoomboxStationValidate", url);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return (BoomBox.ValidStations != null && BoomBox.ValidStations.ContainsValue(url)) || (BoomBox.ServerValidStations != null && BoomBox.ServerValidStations.ContainsValue(url));
//---

Released under the MIT License.