All pastes #280064 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-15 16:43 UTC
rendered paste body
alias -l partmsg { return 7[14Automatic Message7]14 I'm Sorry. I Require 5 Users (Excluding myself) in the channel. }
alias -l joinmsg { return 7[14Automatic Message7]14 Congratulations, Your Channel meets the Except Channel and/or has 5 Users in it. }
alias -l exceptchans { return #chan1 #chan2 #chan3 #etc }
alias -l minusers { return 6 }
on *:INVITE:#:{
  join $chan
if ($istok($exceptchans,$chan,32)) { msg $chan $joinmsg | halt }
  .timer 1 3 pplcheck $chan
}
alias -l pplcheck {
  if ($nick($1,0) < $minusers ) {
    part $1 $partmsg
  }
  else {
    msg $1 $joinmsg
  }
}
on *:PART:#:{
  if ($istok($exceptchans,$chan,32)) { halt }
  if ($nick != $me) && ($nick($chan,0) < $minusers ) {
    part $chan $partmsg
  }
}