Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -24,7 +24,8 @@ namespace Server
|
|||
e.AllowConnection = false;
|
||||
return;
|
||||
}
|
||||
else if ( IPLimiter.SocketBlock && !IPLimiter.Verify( ip ) )
|
||||
|
||||
if ( IPLimiter.SocketBlock && !IPLimiter.Verify( ip ) )
|
||||
{
|
||||
Console.WriteLine( "Client: {0}: Past IP limit threshold", ip );
|
||||
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ namespace Server.Misc
|
|||
if ( AutoAccountCreation && un.Trim().Length > 0 ) // To prevent someone from making an account of just '' or a bunch of meaningless spaces
|
||||
{
|
||||
e.State.Account = acct = CreateAccount( e.State, un, pw );
|
||||
e.Accepted = acct == null ? false : acct.CheckAccess( e.State );
|
||||
e.Accepted = acct?.CheckAccess( e.State ) ?? false;
|
||||
|
||||
if ( !e.Accepted )
|
||||
e.RejectReason = ALRReason.BadComm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue