From: David ‘Bombe’ Roden Date: Mon, 27 Apr 2015 17:21:55 +0000 (+0200) Subject: Ignore leading zeros when filtering color codes X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a8c55e5c163ad7e8d6028be2c4feee20e4c1f22d;p=xudocci.git Ignore leading zeros when filtering color codes --- diff --git a/src/main/java/net/pterodactylus/irc/util/MessageCleaner.java b/src/main/java/net/pterodactylus/irc/util/MessageCleaner.java index 160811e..33bde94 100644 --- a/src/main/java/net/pterodactylus/irc/util/MessageCleaner.java +++ b/src/main/java/net/pterodactylus/irc/util/MessageCleaner.java @@ -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;