mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
NULL voice fix
This commit is contained in:
parent
04f6400ae2
commit
2113c15f9a
|
|
@ -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);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue