Top

Join/Part kicker


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  4.3 (of 3 scores)
Date Added  Jun 18, 2007
Last Updated  Jul 25, 2007
Tags  10  join  kicker  part  seconds 

Description

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.

Grab the Code

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

  (13)  RSS
kerstt
Comments: 63
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 2:59 am
$me isowner $chan isnt actually a mirc option?
Lindrian
Comments: 761
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 3:25 am
I belive it is.. But it doesnt really work properly on most servers.
Lindrian
Comments: 761
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 3:26 am
Sorry for the doubble post, but you can:
instead of isop $chan etc, $nick($chan,$me,ohaq)
ZabuzaMomochi
Comments: 182
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 6:58 am
Ah, i did not think of that. Thank you.
ZabuzaMomochi
Comments: 182
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 6:59 am
Is that correct?

Lindrian
Comments: 761
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 7:06 am
yeah it is, but your missing a op check on the on part.
mysterycool
Comments: 52
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 7:13 am
er.. it's ok.. u can imrpve the scripting of course.. but dont think i will use it cause I do that in my own chan :p
mysterycool
Comments: 52
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 7:16 am
forgot to mention: 4/10 for the scripting and 6/10 for the idea...
ZabuzaMomochi
Comments: 182
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 7:30 am
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.
Lindrian
Comments: 761
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 19, 2007 8:08 am
Well, you might get deop'ed after he joined....
ZabuzaMomochi
Comments: 182
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 20, 2007 6:44 am
Eh, thats true. Edited.
Lindrian
Comments: 761
 
mIRC Snippet:  Join/Part kicker
Posted on Jun 20, 2007 9:05 am
Same thing on the quit event ^_^
ZabuzaMomochi
Comments: 182
 
mIRC Snippet:  Join/Part kicker
Posted on Jul 25, 2007 9:02 am
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

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom