diff --git a/ClassicalSharp/Network/Protocols/WoM.cs b/ClassicalSharp/Network/Protocols/WoM.cs index 4fcda02e3..9d44e6e9b 100644 --- a/ClassicalSharp/Network/Protocols/WoM.cs +++ b/ClassicalSharp/Network/Protocols/WoM.cs @@ -24,6 +24,7 @@ namespace ClassicalSharp.Network.Protocols { } internal void CheckMotd() { + if (net.ServerMotd == null) return; int index = net.ServerMotd.IndexOf("cfg="); if (game.PureClassic || index == -1) return;