Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Add color translation to join-notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Nov 2, 2014
1 parent b527aa7 commit bd8c5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cnaude/purpleirc/PurpleBot.java
Expand Up @@ -2869,7 +2869,7 @@ public void joinNotice(Channel channel, User user) {
if (joinNoticePrivate) {
target = user.getNick();
}
String myMessage = joinNoticeMessage.replace("%NAME%", user.getNick());
String myMessage = ChatColor.translateAlternateColorCodes('&', plugin.colorConverter.gameColorsToIrc(joinNoticeMessage.replace("%NAME%", user.getNick())));
if (joinNoticeMessage.startsWith("/")) {
plugin.commandQueue.add(new IRCCommand(new IRCCommandSender(this, target, plugin, joinNoticeCtcp), myMessage.trim().substring(1)));
} else {
Expand Down

0 comments on commit bd8c5a5

Please sign in to comment.