Skip to content

Commit

Permalink
devoice Geffy if he joins #bl4ckscor3
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckscor3 committed Jun 5, 2016
1 parent dc3b5b3 commit 1304052
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
---
####5.7.3_WIP
- Merged user/channel message private commands
- Devoice Geffy if he joins #bl4ckscor3
- Fixed private commands not working
- Fixed LinkManager sometimes executing ShowTweet code if "twitter" was present in the link itself
- Internal changes
Expand Down
8 changes: 8 additions & 0 deletions src/bl4ckscor3/bot/bl4ckb0t/MiscListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.events.ActionEvent;
import org.pircbotx.hooks.events.ConnectEvent;
import org.pircbotx.hooks.events.JoinEvent;
import org.pircbotx.hooks.events.MessageEvent;
import org.pircbotx.hooks.events.NickAlreadyInUseEvent;
import org.pircbotx.hooks.events.PrivateMessageEvent;
Expand Down Expand Up @@ -165,4 +166,11 @@ public void onNickAlreadyInUse(NickAlreadyInUseEvent event) throws Exception
e.printStackTrace();
}
}

@Override
public void onJoin(JoinEvent event) throws Exception
{
if(event.getChannel().getName().equals("#bl4ckscor3") && event.getUser().equals("Geffy"))
event.getUser().send().mode("-v");
}
}

0 comments on commit 1304052

Please sign in to comment.