Skip to content

Commit

Permalink
Fixed Twitch User badges
Browse files Browse the repository at this point in the history
  • Loading branch information
ManelNavola committed Mar 14, 2020
1 parent 73947df commit d46a1ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion TwitchBotX/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>TwitchBotX</groupId>
<artifactId>TwitchBotX</artifactId>
<version>1.1.3</version>
<version>1.1.4</version>
<name>Twitch Bot X</name>
<description>Twitch-compatible Java implementation of PircBotX</description>
<build>
Expand Down
14 changes: 7 additions & 7 deletions TwitchBotX/src/com/manelnavola/twitchbotx/domain/TwitchUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,25 @@ public boolean hasBadge(Badge badge) {
StringTokenizer st = new StringTokenizer(badgeChain, ",");
while (st.hasMoreTokens()) {
switch (st.nextToken().split("/", 2)[0]) {
case "admin":
case "turbo":
this.badges[0] = true;
break;
case "broadcaster":
case "subscriber":
this.badges[1] = true;
break;
case "global_mod":
case "moderator":
this.badges[2] = true;
break;
case "moderator":
case "broadcaster":
this.badges[3] = true;
break;
case "subscriber":
case "staff":
this.badges[4] = true;
break;
case "staff":
case "global_mod":
this.badges[5] = true;
break;
case "turbo":
case "admin":
this.badges[6] = true;
break;
case "bits":
Expand Down

0 comments on commit d46a1ba

Please sign in to comment.