Fixes body expression style.

This commit is contained in:
Kamron Batman 2018-09-14 08:46:14 -07:00
parent 3f0a72a62f
commit 33f5e77a24
957 changed files with 7424 additions and 15973 deletions

View file

@ -28,10 +28,7 @@ namespace Server.Engines.Chat
public string Name
{
get
{
return m_Name;
}
get => m_Name;
set
{
SendCommand( ChatCommand.RemoveChannel, m_Name );
@ -43,10 +40,7 @@ namespace Server.Engines.Chat
public string Password
{
get
{
return m_Password;
}
get => m_Password;
set
{
string newValue = null;
@ -238,10 +232,7 @@ namespace Server.Engines.Chat
public bool VoiceRestricted
{
get
{
return m_VoiceRestricted;
}
get => m_VoiceRestricted;
set
{
m_VoiceRestricted = value;
@ -255,14 +246,8 @@ namespace Server.Engines.Chat
public bool AlwaysAvailable
{
get
{
return m_AlwaysAvailable;
}
set
{
m_AlwaysAvailable = value;
}
get => m_AlwaysAvailable;
set => m_AlwaysAvailable = value;
}
public void AddVoiced( ChatUser user )
@ -461,13 +446,7 @@ namespace Server.Engines.Chat
private static List<Channel> m_Channels = new List<Channel>();
public static List<Channel> Channels
{
get
{
return m_Channels;
}
}
public static List<Channel> Channels => m_Channels;
public static void SendChannelsTo( ChatUser user )
{

View file

@ -11,8 +11,8 @@ namespace Server.Engines.Chat
public static bool Enabled
{
get{ return m_Enabled; }
set{ m_Enabled = value; }
get => m_Enabled;
set => m_Enabled = value;
}
public static void Initialize()

View file

@ -8,9 +8,9 @@ namespace Server.Engines.Chat
private bool m_RequireConference;
private OnChatAction m_Callback;
public bool RequireModerator{ get{ return m_RequireModerator; } }
public bool RequireConference{ get{ return m_RequireConference; } }
public OnChatAction Callback{ get{ return m_Callback; } }
public bool RequireModerator => m_RequireModerator;
public bool RequireConference => m_RequireConference;
public OnChatAction Callback => m_Callback;
public ChatActionHandler( bool requireModerator, bool requireConference, OnChatAction callback )
{

View file

@ -18,29 +18,11 @@ namespace Server.Engines.Chat
m_Ignoring = new List<ChatUser>();
}
public Mobile Mobile
{
get
{
return m_Mobile;
}
}
public Mobile Mobile => m_Mobile;
public List<ChatUser> Ignored
{
get
{
return m_Ignored;
}
}
public List<ChatUser> Ignored => m_Ignored;
public List<ChatUser> Ignoring
{
get
{
return m_Ignoring;
}
}
public List<ChatUser> Ignoring => m_Ignoring;
public string Username
{
@ -60,46 +42,22 @@ namespace Server.Engines.Chat
public Channel CurrentChannel
{
get
{
return m_Channel;
}
set
{
m_Channel = value;
}
get => m_Channel;
set => m_Channel = value;
}
public bool IsOnline
{
get
{
return ( m_Mobile.NetState != null );
}
}
public bool IsOnline => ( m_Mobile.NetState != null );
public bool Anonymous
{
get
{
return m_Anonymous;
}
set
{
m_Anonymous = value;
}
get => m_Anonymous;
set => m_Anonymous = value;
}
public bool IgnorePrivateMessage
{
get
{
return m_IgnorePrivateMessage;
}
set
{
m_IgnorePrivateMessage = value;
}
get => m_IgnorePrivateMessage;
set => m_IgnorePrivateMessage = value;
}
public const char NormalColorCharacter = '0';
@ -153,13 +111,7 @@ namespace Server.Engines.Chat
return m_Ignored.Contains( check );
}
public bool IsModerator
{
get
{
return ( m_Channel != null && m_Channel.IsModerator( this ) );
}
}
public bool IsModerator => ( m_Channel != null && m_Channel.IsModerator( this ) );
public void AddIgnored( ChatUser user )
{