- Removed the ASCII 0x7F control character from safe character lists.

- Added the TraceLockdown command.
- Fixed a missing conflicting layer check for FishingPole.
- Controlled and summoned creatures are no longer affected by the confusion blast potion effect.
This commit is contained in:
eos 2012-09-08 23:42:45 +00:00
parent 512ab4bfbf
commit 11f84a33cd
8 changed files with 69 additions and 8 deletions

View file

@ -121,7 +121,7 @@ namespace Server.Misc
bool isSafe = true;
for ( int i = 0; isSafe && i < pass.Length; ++i )
isSafe = ( pass[i] >= 0x20 && pass[i] < 0x80 );
isSafe = ( pass[i] >= 0x20 && pass[i] < 0x7F );
if ( !isSafe )
{
@ -275,10 +275,10 @@ namespace Server.Misc
bool isSafe = !( un.StartsWith( " " ) || un.EndsWith( " " ) || un.EndsWith( "." ) );
for ( int i = 0; isSafe && i < un.Length; ++i )
isSafe = ( un[i] >= 0x20 && un[i] < 0x80 && !IsForbiddenChar( un[i] ) );
isSafe = ( un[i] >= 0x20 && un[i] < 0x7F && !IsForbiddenChar( un[i] ) );
for ( int i = 0; isSafe && i < pw.Length; ++i )
isSafe = ( pw[i] >= 0x20 && pw[i] < 0x80 );
isSafe = ( pw[i] >= 0x20 && pw[i] < 0x7F );
if ( !isSafe )
return null;