Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -133,8 +133,7 @@ namespace Server.Engines.Chat
|
|||
}
|
||||
else
|
||||
{
|
||||
if ( user.CurrentChannel != null )
|
||||
user.CurrentChannel.RemoveUser( user ); // Remove them from their current channel first
|
||||
user.CurrentChannel?.RemoveUser( user ); // Remove them from their current channel first
|
||||
|
||||
ChatSystem.SendCommandTo( user.Mobile, ChatCommand.JoinedChannel, m_Name );
|
||||
|
||||
|
|
@ -226,8 +225,8 @@ namespace Server.Engines.Chat
|
|||
SendMessage( 44, user.Username ) ; // %1 has been kicked out of the conference.
|
||||
}
|
||||
|
||||
if ( wasBanned && moderator != null )
|
||||
moderator.SendMessage( 62, user.Username ); // You are banning %1 from this conference.
|
||||
if ( wasBanned )
|
||||
moderator?.SendMessage( 62, user.Username ); // You are banning %1 from this conference.
|
||||
}
|
||||
|
||||
public bool VoiceRestricted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue