Closed WizardCM closed 11 years ago
I have no idea where to add this. Any suggestions would be good.
I do not see the use in adding this.
If someone bolds (etc) something ingame, the plugin should be able to properly filter/format it.
I'm pretty sure this can be achieved in the config.
This seems like it'll be quite a bit of work.
Currently, the codes are set as a number (possibly a char, though not entirely sure).
Some variables to look into (in IRCd.java) ircColors gameColors
The IRC codes are mIRC Color Codes
Those variables are unrelated to other formatting codes than colors, however convertColors handles those as well. Unless you have changed this, currently convertColors replaces IRC color codes with nothing, it could simply be changed to replace them with the respective Minecraft color codes. As for ingame messages sent to IRC replacing the codes will have to be added in the same way it's done in the rest of the function. I haven't looked at the code in a while but if you can't figure it out I'll try to help out.
A Python gist I made that may help shed some light on this Thankfully Python is simple enough to be read by even people who don't know python's syntax :)
I intend to do this in Java for real, I'll be rewriting the method using the logic above
Fixed in pull request #29
Currently, the following colour/formatting codes do not work;
§k Random §l Bold §m Strike §n Underlined §o Italics §r Reset