Ignore leading zeros when filtering color codes
[xudocci.git] / src / main / java / net / pterodactylus / irc / util / MessageCleaner.java
index 160811e..33bde94 100644 (file)
@@ -94,6 +94,8 @@ public class MessageCleaner {
                                if (inColorCode == 1) {
                                        if ((c < '0') || (c > '9')) {
                                                inColorCode = 0;
+                                       } else if (c == '0') {
+                                               continue;
                                        } else {
                                                if (c == '9') {
                                                        inColorCode = 8;