1 parent af731f9 commit 4712849Copy full SHA for 4712849
1 file changed
fCraft/System/Server.cs
@@ -986,7 +986,7 @@ static void ShowRandomAnnouncement( SchedulerTask task ) {
986
line = line.Remove(0, 4);
987
}
988
string anncmnt = (line.CaselessStarts("&") ? "" : "&R") + Chat.ReplaceTextKeywords(pl, line);
989
- if (pl.Supports(CpeExt.MessageType)) {
+ if (pl.Supports(CpeExt.MessageType) && messageLine != 0) {
990
pl.Send(Packet.Message(messageLine, anncmnt, pl));
991
} else {
992
pl.Message(anncmnt);
0 commit comments