Fixes expressions that are always true, null, or flase.
This commit is contained in:
parent
970fd563b2
commit
7321fa1b63
6 changed files with 14 additions and 29 deletions
|
|
@ -53,14 +53,14 @@ namespace Server.Engines.Chat
|
|||
|
||||
accountChatName = accountChatName?.Trim();
|
||||
|
||||
if (accountChatName != null && accountChatName.Length > 0)
|
||||
if (!string.IsNullOrEmpty(accountChatName))
|
||||
{
|
||||
if (chatName.Length > 0 && chatName != accountChatName)
|
||||
from.SendMessage("You cannot change chat nickname once it has been set.");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (chatName == null || chatName.Length == 0)
|
||||
if (chatName.Length == 0)
|
||||
{
|
||||
SendCommandTo(from, ChatCommand.AskNewNickname);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue