Join/Part kicker

By ZabuzaMomochi on Jun 18, 2007

This is a simple snippet that bans a nick if they join and part a channel in under 10 seconds. Dont know if this has been done before, but it is very useful.

on *:JOIN:#: {
  if ($nick($chan,$me,ohaq)) {
    .auser joinchan $nick
    set %j. $+ $chan $chan
    .timer 1 3 .ruser $nick
    set %join. $+ $nick $calc(%join. [ $+ [ $nick ] ])
    .timer 1 300 unset %join. [ $+ [ $nick ] ]
  }
  if (%join. [ $+ [ $nick ] ] == 5) {
    mode $chan +b $address($nick,2)
    msg $chan 4[5[4[12Auto-Banned 4 $+ $nick 12for: 10Joining/Parting 8 times in 5 minutes4]5]4]            
  }
}
on joinchan:PART:#: {
  if ($nick($chan,$me,ohaq)) {
    if (%j. [ $+ [ $chan ] ]) {
      mode $chan +bb $address($nick,2) $nick
      .ruser $nick
      unset %chantime
      msg $chan 4[5[4[12Auto-Banned 4 $+ $nick 12for: 10Join/Part in under three seconds4]5]4]          
    }
  }
}
on joinchan:QUIT: {
  if (%j. [ $+ [ $chan ] ]) {
    .ruser $nick
  }
}
on joinchan:KICK: {
  if (%j. [ $+ [ $chan ] ]) {
    .ruser $nick
  }
}

Comments

Sign in to comment.
ZabuzaMomochi   -  Jul 25, 2007

Edited so if someone joins and parts the channel 8 times in 5 minutes, it automatically kick bans them from the channel. Also shortened the time from 10 seconds to 3

 Respond  
Lindrian   -  Jun 20, 2007

Same thing on the quit event ^_^

 Respond  
ZabuzaMomochi   -  Jun 20, 2007

Eh, thats true. Edited.

 Respond  
Lindrian   -  Jun 19, 2007

Well, you might get deop\'ed after he joined....

 Respond  
ZabuzaMomochi   -  Jun 19, 2007

Lindrian: It doesn\'t need an op check on the on part, since it already checks if a user is op when the person joins.

 Respond  
mysterycool   -  Jun 19, 2007

forgot to mention: 4/10 for the scripting and 6/10 for the idea...

 Respond  
Lindrian   -  Jun 19, 2007

yeah it is, but your missing a op check on the on part.

 Respond  
ZabuzaMomochi   -  Jun 19, 2007

Is that correct?

 Respond  
ZabuzaMomochi   -  Jun 19, 2007

Ah, i did not think of that. Thank you.

 Respond  
Lindrian   -  Jun 19, 2007

Sorry for the doubble post, but you can:
instead of isop $chan etc, $nick($chan,$me,ohaq)

 Respond  
Lindrian   -  Jun 19, 2007

I belive it is.. But it doesnt really work properly on most servers.

 Respond  
kerstt   -  Jun 19, 2007

$me isowner $chan isnt actually a mirc option?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.