scandum / tintin

TinTin++, aka tt++, is an extensible console MUD client.
https://tintin.mudhalla.net
GNU General Public License v3.0
201 stars 56 forks source link

Turning on COLOR PATCH and RECEIVED OUTPUT will cause the entire game to lose any color #210

Open dzpao opened 10 months ago

dzpao commented 10 months ago

This problem exists in both master and beta.

This can be easily observed with these two commands.

./tt++ -G -e '#session nwa ateraan.com 4002'
image
./tt++ -G -e '#config {color patch} on; #event {RECEIVED OUTPUT} {#0}; #session nwa ateraan.com 4002'
image
dzpao commented 10 months ago

The problem should be caused by these two codes:

https://github.com/scandum/tintin/blob/84ca426c77b31f53539f09b409562fcde4e6d2b2/src/net.c#L674

https://github.com/scandum/tintin/blob/84ca426c77b31f53539f09b409562fcde4e6d2b2/src/net.c#L701

scandum commented 10 months ago

Thanks, should be fixed in the beta.