NULL voice fix

This commit is contained in:
ChocoTaco1 2020-08-17 19:04:43 -04:00
parent 04f6400ae2
commit 2113c15f9a

View file

@ -367,6 +367,13 @@ function DeactivatePackage(%this)
parent::DeactivatePackage(%this);
}
// Prevents clients from being vulnerable to crashing via NULL voice exploit
function alxGetWaveLen(%wavFile) {
if ( strstr( %wavFile , ".wav" ) == -1 ) return $MaxMessageWavLength + 1;
echo("Length check: " @ %wavFile);
parent::alxGetWaveLen(%wavFile);
}
};