Buggy code:
public class ChatTokenizer { PurpleIRC plugin ; public ChatTokenizer ( PurpleIRC plugin ) { } public String chatIRCTokenizer ( PurpleBot ircBot , User user , Channel channel , String template ) { } public String ircUserTokenizer ( String template , User user , PurpleBot ircBot ) { String host = user . getHostmask ( ) ; String server = user . getServer ( ) ; String away = user . getAwayMessage ( ) ; String ircNick = user . getNick ( ) ; String customPrefix = ircBot . defaultCustomPrefix ; if ( host == null ) { host = "" ; } if ( server == null ) { server = "" ; } if ( away == null ) { away = "" ; } plugin . logDebug ( ( "customPrefix<seq2seq4repair_space>before:<seq2seq4repair_space>" + customPrefix ) ) ; if ( ! ( ircBot . userPrefixes . isEmpty ( ) ) ) { for ( String key : ircBot . userPrefixes . keySet ( ) ) { <START_BUG> if ( ( ircBot . userPrefixes . containsKey ( user . getNick ( ) ) ) || ( ircBot . checkUserMask ( user , key ) ) ) { <END_BUG> customPrefix = ircBot . userPrefixes . get ( key ) ; break ; } } } plugin . logDebug ( ( "customPrefix<seq2seq4repair_space>after:<seq2seq4repair_space>" + customPrefix ) ) ; return template . replace ( "%HOST%" , host ) . replace ( "%CUSTOMPREFIX%" , customPrefix ) . replace ( "%NAME%" , ircNick ) . replace ( "%SERVER%" , server ) . replace ( "%AWAY%" , away ) ; } public String ircUserTokenizer ( String template , User recipient , User kicker , PurpleBot ircBot ) { } public String ircChatToHeroChatTokenizer ( PurpleBot ircBot , User user , Channel channel , String template , ChannelManager channelManager , String hChannel ) { } public String ircChatToGameTokenizer ( PurpleBot ircBot , User user , Channel channel , String template , String message ) { } public String ircChatToHeroChatTokenizer ( PurpleBot ircBot , User user , Channel channel , String template , String message , ChannelManager channelManager , String hChannel ) { } public String ircChatToTownyChatTokenizer ( PurpleBot ircBot , User user , Channel channel , String template , String message , String tChannel ) { } public String ircKickTokenizer ( PurpleBot ircBot , User recipient , User kicker , String reason , Channel channel , String template ) { } public String ircKickToHeroChatTokenizer ( PurpleBot ircBot , User recipient , User kicker , String reason , Channel channel , String template , ChannelManager channelManager , String hChannel ) { } public String ircModeTokenizer ( PurpleBot ircBot , User user , String mode , Channel channel , String template ) { } public String ircNoticeTokenizer ( PurpleBot ircBot , User user , String message , String notice , Channel channel , String template ) { } public String gameChatToIRCTokenizer ( String pName , String template , String message ) { } public String gameChatToIRCTokenizer ( Player player , String template , String message ) { } public String dynmapWebChatToIRCTokenizer ( String source , String name , String template , String message ) { } public String gamePlayerAFKTokenizer ( Player player , String template ) { } public String mcMMOPartyChatToIRCTokenizer ( Player player , String template , String message , String partyName ) { } public String mcMMOChatToIRCTokenizer ( Player player , String template , String message ) { } public String chatFactionTokenizer ( Player player , String botNick , String message , String chatTag , String chatMode ) { } public String chatHeroTokenizer ( Player player , String message , String hColor , String hChannel , String hNick , String template ) { } public String chatTownyChannelTokenizer ( Player player , com . palmergames . bukkit . TownyChat . channels . Channel townyChannel , String message , String template ) { } public String titanChatTokenizer ( Player player , String tChannel , String tColor , String message , String template ) { } public String gameChatToIRCTokenizer ( String template , String message ) { } public String gameKickTokenizer ( Player player , String template , String message , String reason ) { } public String reportRTSTokenizer ( String pName , String template , Ticket ticket ) { } public String reportRTSTokenizer ( CommandSender sender , String message , String template ) { } public String playerTokenizer ( Player player , String message ) { } private String playerTokenizer ( String playerName , String message ) { } private Player getPlayer ( String name ) { } public String gameCommandToIRCTokenizer ( Player player , String template , String cmd , String params ) { } public String targetChatResponseTokenizer ( String target , String message , String template ) { } public String msgChatResponseTokenizer ( String target , String message , String template ) { } }

Fix:
if ( ( key . equalsIgnoreCase ( user . getNick ( ) ) ) || ( ircBot . checkUserMask ( user , key ) ) ) {