Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Add game-achievement to sample bot
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Sep 16, 2015
1 parent 9f9e8c9 commit e67a276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/cnaude/purpleirc/PurpleIRC.java
Expand Up @@ -1451,16 +1451,13 @@ private void detectHooks() {
if (cls != null) {
for (Method m : cls.getMethods()) {
if (m.getName().equals("isSoftMuted")) {
hookList.add(hookFormat(PL_GRIEFPREVENTION, true));
griefPreventionHook = new GriefPreventionHook(this);
hooked = true;
break;
}
}
}
if (!hooked) {
hookList.add(hookFormat(PL_GRIEFPREVENTION, false));
}
hookList.add(hookFormat(PL_GRIEFPREVENTION, hooked));
} else {
hookList.add(hookFormat(PL_GRIEFPREVENTION, false));
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/SampleBot.yml
Expand Up @@ -143,9 +143,10 @@ channels:
- game-kick
- game-join
- game-quit
- game-achievement
- game-mode
- fake-join
- fake-quit
- game-mode
# Essentials helpop messages (/helpop /amsg /ac)
- ess-helpop
# Prism
Expand Down

0 comments on commit e67a276

Please sign in to comment.