Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #9 from Wirehive/master

Color shorthand codes update
  • Loading branch information...
commit 648d33e738213f61b9ecb292b106a19df617e3fd 2 parents 5d91c45 + e17e422
@RJ authored
Showing with 20 additions and 20 deletions.
  1. +20 −20 src/fm/last/irccat/IRCCat.java
View
40 src/fm/last/irccat/IRCCat.java
@@ -190,26 +190,26 @@ public void sendMsg(String t, String m) {
public String mIRCify(String m) {
Map<String, String> colorReplacementMap = new HashMap<String, String>();
- colorReplacementMap.put("#NORMAL", Colors.NORMAL);
- colorReplacementMap.put("#BOLD", Colors.BOLD);
- colorReplacementMap.put("#UNDERLINE", Colors.UNDERLINE);
- colorReplacementMap.put("#REVERSE", Colors.REVERSE);
- colorReplacementMap.put("#WHITE", Colors.WHITE);
- colorReplacementMap.put("#BLACK", Colors.BLACK);
- colorReplacementMap.put("#DBLUE", Colors.DARK_BLUE);
- colorReplacementMap.put("#DGREEN", Colors.DARK_GREEN);
- colorReplacementMap.put("#RED", Colors.RED);
- colorReplacementMap.put("#BROWN", Colors.BROWN);
- colorReplacementMap.put("#PURPLE", Colors.PURPLE);
- colorReplacementMap.put("#ORANGE", Colors.OLIVE);
- colorReplacementMap.put("#YELLOW", Colors.YELLOW);
- colorReplacementMap.put("#GREEN", Colors.GREEN);
- colorReplacementMap.put("#TEAL", Colors.TEAL);
- colorReplacementMap.put("#CYAN", Colors.CYAN);
- colorReplacementMap.put("#BLUE", Colors.BLUE);
- colorReplacementMap.put("#PINK", Colors.MAGENTA);
- colorReplacementMap.put("#DGRAY", Colors.DARK_GRAY);
- colorReplacementMap.put("#GRAY", Colors.LIGHT_GRAY);
+ colorReplacementMap.put("%NORMAL", Colors.NORMAL);
+ colorReplacementMap.put("%BOLD", Colors.BOLD);
+ colorReplacementMap.put("%UNDERLINE", Colors.UNDERLINE);
+ colorReplacementMap.put("%REVERSE", Colors.REVERSE);
+ colorReplacementMap.put("%WHITE", Colors.WHITE);
+ colorReplacementMap.put("%BLACK", Colors.BLACK);
+ colorReplacementMap.put("%DBLUE", Colors.DARK_BLUE);
+ colorReplacementMap.put("%DGREEN", Colors.DARK_GREEN);
+ colorReplacementMap.put("%RED", Colors.RED);
+ colorReplacementMap.put("%BROWN", Colors.BROWN);
+ colorReplacementMap.put("%PURPLE", Colors.PURPLE);
+ colorReplacementMap.put("%ORANGE", Colors.OLIVE);
+ colorReplacementMap.put("%YELLOW", Colors.YELLOW);
+ colorReplacementMap.put("%GREEN", Colors.GREEN);
+ colorReplacementMap.put("%TEAL", Colors.TEAL);
+ colorReplacementMap.put("%CYAN", Colors.CYAN);
+ colorReplacementMap.put("%BLUE", Colors.BLUE);
+ colorReplacementMap.put("%PINK", Colors.MAGENTA);
+ colorReplacementMap.put("%DGRAY", Colors.DARK_GRAY);
+ colorReplacementMap.put("%GRAY", Colors.LIGHT_GRAY);
for(Map.Entry<String, String> e : colorReplacementMap.entrySet())
m = m.replaceAll(e.getKey(), e.getValue());
Please sign in to comment.
Something went wrong with that request. Please try again.