// Path: vilebot/src/main/java/com/oldterns/vilebot/util/Colors.java
// public class Colors
// {
//     public static final String BLACK = "\u000301";
// 
//     public static final String BLUE = "\u000312";
// 
//     public static final String BOLD = "\u0002";
// 
//     public static final String BROWN = "\u000305";
// 
//     public static final String CYAN = "\u000311";
// 
//     public static final String DARK_BLUE = "\u000302";
// 
//     public static final String DARK_GRAY = "\u000314";
// 
//     public static final String DARK_GREEN = "\u000303";
// 
//     public static final String GREEN = "\u000309";
// 
//     public static final String LIGHT_GRAY = "\u000315";
// 
//     public static final String MAGENTA = "\u000313";
// 
//     public static final String NORMAL = "\u000f";
// 
//     public static final String OLIVE = "\u000307";
// 
//     public static final String PURPLE = "\u000306";
// 
//     public static final String RED = "\u000304";
// 
//     public static final String REVERSE = "\u0016";
// 
//     public static final String TEAL = "\u000310";
// 
//     public static final String UNDERLINE = "\u001f";
// 
//     public static final String WHITE = "\u000300";
// 
//     public static final String YELLOW = "\u000308";
// 
//     /**
//      * Return a copy of the input String with IRC bold characters inserted.
//      *
//      * @return The modified copy of the input String
//      */
//     public static String bold( String input )
//     {
//         return BOLD + input + BOLD;
//     }
// }


import com.oldterns.vilebot.util.Colors;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.types.GenericMessageEvent;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
        if ( sedMatcher.matches() )
        {
            String correction = "Correction: ";

            // If the last group of the regex captures a non-null string, the user is fixing another user's message.
            if ( sedMatcher.group( 5 ) != null )
            {
                nick = sedMatcher.group( 5 );
                correction = nick + ", ftfy: ";
            }

            if ( lastMessageMapByNick.containsKey( nick ) )
            {
                String regexp = sedMatcher.group( 2 );
                String replacement = sedMatcher.group( 3 );
                String endFlag = sedMatcher.group( 4 );

                synchronized ( lastMessageMapByNickMutex )
                {
                    String lastMessage = lastMessageMapByNick.get( nick );

                    if ( !lastMessage.contains( regexp ) )
                    {
                        event.respondWith( "Wow. Seriously? Try subbing out a string that actually occurred. Do you even sed, bro?" );
                    }
                    else
                    {
                        String replacedMsg;
                        String replacedMsgWHL;

// Path: vilebot/src/main/java/com/oldterns/vilebot/util/Colors.java
// public class Colors
// {
//     public static final String BLACK = "\u000301";
// 
//     public static final String BLUE = "\u000312";
// 
//     public static final String BOLD = "\u0002";
// 
//     public static final String BROWN = "\u000305";
// 
//     public static final String CYAN = "\u000311";
// 
//     public static final String DARK_BLUE = "\u000302";
// 
//     public static final String DARK_GRAY = "\u000314";
// 
//     public static final String DARK_GREEN = "\u000303";
// 
//     public static final String GREEN = "\u000309";
// 
//     public static final String LIGHT_GRAY = "\u000315";
// 
//     public static final String MAGENTA = "\u000313";
// 
//     public static final String NORMAL = "\u000f";
// 
//     public static final String OLIVE = "\u000307";
// 
//     public static final String PURPLE = "\u000306";
// 
//     public static final String RED = "\u000304";
// 
//     public static final String REVERSE = "\u0016";
// 
//     public static final String TEAL = "\u000310";
// 
//     public static final String UNDERLINE = "\u001f";
// 
//     public static final String WHITE = "\u000300";
// 
//     public static final String YELLOW = "\u000308";
// 
//     /**
//      * Return a copy of the input String with IRC bold characters inserted.
//      *
//      * @return The modified copy of the input String
//      */
//     public static String bold( String input )
//     {
//         return BOLD + input + BOLD;
//     }
// }


// Path: vilebot/src/main/java/com/oldterns/vilebot/handlers/user/LastMessageSed.java
import com.oldterns.vilebot.util.Colors;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.types.GenericMessageEvent;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

        if ( sedMatcher.matches() )
        {
            String correction = "Correction: ";

            // If the last group of the regex captures a non-null string, the user is fixing another user's message.
            if ( sedMatcher.group( 5 ) != null )
            {
                nick = sedMatcher.group( 5 );
                correction = nick + ", ftfy: ";
            }

            if ( lastMessageMapByNick.containsKey( nick ) )
            {
                String regexp = sedMatcher.group( 2 );
                String replacement = sedMatcher.group( 3 );
                String endFlag = sedMatcher.group( 4 );

                synchronized ( lastMessageMapByNickMutex )
                {
                    String lastMessage = lastMessageMapByNick.get( nick );

                    if ( !lastMessage.contains( regexp ) )
                    {
                        event.respondWith( "Wow. Seriously? Try subbing out a string that actually occurred. Do you even sed, bro?" );
                    }
                    else
                    {
                        String replacedMsg;
                        String replacedMsgWHL;

                        String replacementWHL = Colors.bold( replacement );