Skip to content
Permalink
Browse files

fix minor issue with MOTD on first run

  • Loading branch information...
daPhie79 committed Aug 6, 2018
1 parent 6ae4559 commit 5db6239e2ac9db015b34647dd553b738541fb525
Showing with 2 additions and 0 deletions.
  1. +2 −0 MainForm.cs
@@ -161,6 +161,8 @@ private void UpdateMOTD()
string motd = client.DownloadString(MOTD_URL);
if (!string.IsNullOrEmpty(motd))
{
if (!Directory.Exists(Path.GetDirectoryName(MotdFilename)))
Directory.CreateDirectory(Path.GetDirectoryName(MotdFilename));
File.WriteAllText(MotdFilename, motd);
}
Match m = Regex.Match(motd, "\\<\\!\\-\\-\\-\\s([^\\s]+)\\s\\-\\-\\>");

0 comments on commit 5db6239

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.