djcas9 / komanda

The IRC Client For Developers
http://komanda.io
MIT License
1.78k stars 75 forks source link

Fix extra leading 0s causing problems in color processing #240

Closed qqndrew closed 9 years ago

qqndrew commented 9 years ago

i.e. ^C03 as opposed to ^C3 will cause the 0 to be eaten up and (green)3message to be displayed instead of (green) message as expected. Similar behaviour applies for background colors.

qqndrew commented 9 years ago

In addition, the last two commits fixed a different bug I discovered during testing in that the color parser will eat ^C33 and handle that incorrectly (as an example) and/or any situation where it is a color code followed immediately by a number