Skip to content

Commit

Permalink
Will not send if message is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosnt committed Dec 31, 2016
1 parent 030521c commit d50f730
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/I18n/EssLang.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ public static void Send(ICommandSource target, string key, params object[] args)
if (message == null) {
color = Color.red;
message = string.Format(KEY_NOT_FOUND_MESSAGE, key);
} else {
} else if (message.Length > 0) {
color = ColorUtil.GetColorFromString(ref message);
} else {
return; // Will not send if message is empty.
}

target.SendMessage(message, color);
Expand Down

0 comments on commit d50f730

Please sign in to comment.