MegaGlest Forum

MegaGlest => Feature requests => Topic started by: filux on 1 June 2013, 09:40:47

Title: Chat's engine should respect the marks of the new lines
Post by: filux on 1 June 2013, 09:40:47
I think that it would be nice if the chat's engine in the lobby can respect the marks of the new line received from e.g. MGBot.

e.g.
(http://imgius.com/photos/20130601137007915522046.png)

should looks like this:
Code: [Select]
MGBot 'v3.8-dev|Windows-Rev: 4347|Jun  1 2013 09:58:52|carolinuss game|89.73.213.157|prax0.5.4|cliffway|desert2|1|1|1|61357|??|2|
v3.7.1|Linux-X64-Rev: 3948|Nov 23 2012 00:29:10|wassim cvs game|124.109.2.127|megapack|conflict|desert2|2|2|2|61357|TH|2|'


...and more preferably with an automatic word wrapping of long lines, like this:
Code: [Select]
MGBot 'v3.8-dev|Windows-Rev: 4347|Jun  1 2013 09:58:52|carolinuss game|
89.73.213.157|prax0.5.4|cliffway|desert2|1|1|1|61357|??|2|
v3.7.1|Linux-X64-Rev: 3948|Nov 23 2012 00:29:10|wassim cvs game|
124.109.2.127|megapack|conflict|desert2|2|2|2|61357|TH|2|'

Title: Re: Chat's engine should respect the marks of the new lines
Post by: tomreyn on 1 June 2013, 17:06:29
Try the !server command with an IRC client, you'll get to see \n there, too. This is not a shortcoming in the game engine but in the output formatting generated by MGBot. But then, this command is hardly useful anyways, since when you're in the game the server list is already displayed on top.

Edit (tomreyn, 2013-06-02): s/comment/command/
Title: Re: Chat's engine should respect the marks of the new lines
Post by: filux on 1 June 2013, 17:37:38
If I thought, that is a game shortcoming then this post was would in the bugs forum. :)
It was an example. I believe that support for marks will find more uses in the future.

The command itself is sometimes helpful in the game too, to assess how many players currently playing. ;)