Fixes more casting
This commit is contained in:
parent
61937d9c97
commit
e77d695684
91 changed files with 512 additions and 908 deletions
|
|
@ -159,8 +159,7 @@ namespace Server.RemoteAdmin
|
|||
string user = pvSrc.ReadString( 30 );
|
||||
string pw = pvSrc.ReadString( 30 );
|
||||
|
||||
Account a = Accounts.GetAccount( user ) as Account;
|
||||
if ( a == null )
|
||||
if ( !(Accounts.GetAccount( user ) is Account a) )
|
||||
{
|
||||
state.Send( new Login( LoginResponse.NoUser ) );
|
||||
Console.WriteLine( "ADMIN: Invalid username '{0}' from {1}", user, state );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue