Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;GanjaIRC botnet protection by nick1
- ;Created August 27 2012
- off *:text:*:#services: {
- if (($nick == Global) || ($nick == Logger)) {
- if ($strip($1) == CONNECT) {
- if (%botnet != on) {
- inc -z %botnetcount 20
- if (%botnetcount >= 100) {
- botnet
- }
- }
- elseif (%botnet == on) {
- kline $2 Botnet Detected at $5 -- Use http://www.ganjairc.com/forum/ to appeal -- $asctime
- }
- }
- }
- }
- on *:input:*: {
- if ($1 == !botnet) {
- botnet
- }
- }
- off *:text:!botnet:#staff:{
- botnet
- }
- alias botnet {
- set %botnet $iif(%botnet == on,off,on)
- $iif(%botnet == off,wallops Botnet protection for GanjaIRC is now off -- monitoring resumed,wallops Activating botnet protection for GanjaIRC -- Connections disabled for the next 2 minutes)
- echo -ac info $iif(%botnet == off,Botnet protection for GanjaIRC is now off -- monitoring resumed,Activating botnet protection for GanjaIRC -- Connections disabled for the next 2 minutes)
- $iif(%botnet == on,.timerbotnetoff 1 120 botnet,noop)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement