LAN Announcer

LAN Announcer

73 Downloads

Better handling of multi-line MotD

magicus opened this issue ยท 1 comments

commented

Our family server has a two-line MotD, used by inserting \n in the motd property. (This is rather common practice for Minecraft servers).

Unfortunately this is shown in the LAN broadcast as the LF unicode block "[LF]". I think a better approach would be to replace this with -, as it will work as an acceptable one-line separator.

This should be a trivial addition to sanitizeMOTD. I can submit a PR, if you like. Let me know.

commented

Hey thanks for the issue!

Yes that sounds like a trivial change, feel free to make a PR!

I am rather busy but I'll try to get around to releasing it once you do!

If you don't, I might get around to it some day ๐Ÿ˜