1. Chris Thunes
  2. ircbot

Commits

Chris Thunes  committed 322c7bb

Fix string parsing bug

  • Participants
  • Parent commits e3a8f02
  • Branches master

Comments (0)

Files changed (1)

File brewtab-ircbot/src/main/java/com/brewtab/ircbot/BotChannelListener.java

View file
                 break;
 
             case 3:
-                sb.append(c);
+                if (c == '\"') {
+                    sb.append('\"');
+                } else if (c == 'n') {
+                    sb.append('\n');
+                }
                 state = 2;
                 break;
             }