From d0e038cdd3b042f30e85d6263e29e570300f9b2a Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Fri, 30 Dec 2016 22:11:26 +0100 Subject: [PATCH] Added #55 --- src/main/java/buttondevteam/chat/ChatProcessing.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/buttondevteam/chat/ChatProcessing.java b/src/main/java/buttondevteam/chat/ChatProcessing.java index 9532163..8cf9b81 100644 --- a/src/main/java/buttondevteam/chat/ChatProcessing.java +++ b/src/main/java/buttondevteam/chat/ChatProcessing.java @@ -30,6 +30,7 @@ import buttondevteam.lib.chat.*; public class ChatProcessing { private static final Pattern NULL_MENTION_PATTERN = Pattern.compile("null"); + private static final Pattern CYAN_PATTERN = Pattern.compile("cyan"); private static final Pattern ESCAPE_PATTERN = Pattern.compile("\\\\"); private static final Pattern CONSOLE_PING_PATTERN = Pattern.compile("(?i)" + Pattern.quote("@console")); private static final Pattern HASHTAG_PATTERN = Pattern.compile("#(\\w+)"); @@ -72,6 +73,7 @@ public class ChatProcessing { commonFormatters.add(new ChatFormatterBuilder().setRegex(HASHTAG_PATTERN).setColor(Color.Blue) .setOpenlink("https://twitter.com/hashtag/$1").setPriority(Priority.High).build()); + commonFormatters.add(new ChatFormatterBuilder().setRegex(CYAN_PATTERN).setColor(Color.Aqua).build()); // #55 } // Returns e.setCancelled for custom event