Skip to content

Commit

Permalink
Add exports for modules (oops)
Browse files Browse the repository at this point in the history
* change getParsedResponse to return java List, to avoid needing transitive automatic module for guava
  • Loading branch information
itsnotoger committed Jul 18, 2024
1 parent 7afe926 commit 776c2b0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {
}

group = "com.github.itsnotoger"
version = "2.5.1-twitchify"
version = "2.5.2-twitchify"

tasks {
compileTestJava {
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@
requires org.apache.commons.lang3;
requires org.slf4j;
requires org.jetbrains.annotations;
exports org.pircbotx;
exports org.pircbotx.cap;
exports org.pircbotx.exception;
exports org.pircbotx.hooks;
exports org.pircbotx.hooks.events;
exports org.pircbotx.hooks.managers;
exports org.pircbotx.hooks.types;
exports org.pircbotx.snapshot;
exports org.pircbotx.output;
exports org.pircbotx.dcc;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import org.pircbotx.PircBotX;
import org.pircbotx.ReplyConstants;

import java.util.List;

/**
* This is called when we receive a numeric response from the IRC server.
* <p>
Expand Down Expand Up @@ -61,13 +63,17 @@ public class ServerResponseEvent extends Event {
* Parsed raw line.
*/
protected final ImmutableList<String> parsedResponse;

public ServerResponseEvent(PircBotX bot, int code, @NonNull String rawLine, @NonNull ImmutableList<String> parsedResponse) {
super(bot);
this.code = code;
this.rawLine = rawLine;
this.parsedResponse = parsedResponse;
}

public final List<String> getParsedResponse() {
return parsedResponse;
}

/**
* Respond with a <i>raw line</i> to the server
Expand Down

0 comments on commit 776c2b0

Please sign in to comment.