Skip to content

Commit

Permalink
minor cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 9, 2021
1 parent 72046a3 commit b3a7f36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Expand Up @@ -15,7 +15,7 @@ public abstract class DiscordScriptEvent extends BukkitScriptEvent {

@Override
public boolean matches(ScriptPath path) {
if (!path.checkSwitch("for", botID)) {
if (!runGenericSwitchCheck(path, "for", botID)) {
return false;
}
return super.matches(path);
Expand Down
Expand Up @@ -127,12 +127,7 @@ public void execute(ScriptEntry scriptEntry) {
DiscordUserTag user = scriptEntry.getObjectTag("user");
ElementTag reaction = scriptEntry.getElement("reaction");
if (scriptEntry.dbCallShouldDebug()) {
Debug.report(scriptEntry, getName(), id.debug()
+ instruction.debug()
+ (channel != null ? channel.debug() : "")
+ (user != null ? user.debug() : "")
+ message.debug()
+ reaction.debug());
Debug.report(scriptEntry, getName(), id, instruction, channel, user, message, reaction);
}
JDA client = DenizenDiscordBot.instance.connections.get(id.asString()).client;
if (message.channel_id == 0) {
Expand Down

0 comments on commit b3a7f36

Please sign in to comment.