Merge branch 'master' into general-fixes

This commit is contained in:
Dan Balasescu
2017-05-16 20:52:38 +09:00
committed by GitHub
14 changed files with 485 additions and 103 deletions

View File

@ -352,7 +352,15 @@ namespace osu.Game.Overlays
{
var postText = textbox.Text;
if (string.IsNullOrEmpty(postText) || api.LocalUser.Value == null) return;
if (string.IsNullOrEmpty(postText))
return;
if (!api.IsLoggedIn)
{
currentChannel?.AddNewMessages(new ErrorMessage("Please login to participate in chat!"));
textbox.Text = string.Empty;
return;
}
if (currentChannel == null) return;