Voice User On Join

By h3lp on Mar 11, 2005

What a boring snippet. LOL.


This snippet is design for multiple voicing user and avoiding you from get excess flood. The voicing user eg:




+vvvvvvvvvv nick1 nick2 nick3....




It may be a common snippet, but this is different. "It is suitable for a bigger channel".

on @!*:join:#:{
  .hadd -m # $+(v,.,$nick) 
  $+(.timer,.,#,.,v) 1 5 svo # 
}

alias svo {
  while ($hget($1,*).item) {
    var %n = 1, %c, %g, %v
    while (%n <= $modespl) {
      %g = $gettok($hget($1,1).item,2,46)
      if (%g) {
        if ((%g ison $1) && (%g isreg $1)) %v = %v %g 
        .hdel -sw $1 $+(v,.,%g)
        inc %c 
      }
      inc %n
    }
    mode $1 + $+ $str(v,%c) %v
  }
}

Comments

Sign in to comment.
LIQUID_NiTrO   -  Mar 23, 2005

Yeah, it\'s not neccessary to start a timer for everyone that joins. Maybe have a $rand, or maybe make the timer name not nick-unique, such as /timerVoiceall, check if the timer is active, and if not start it. Just a few suggestions though, the script works fairly well.

 Respond  
DarthReven   -  Mar 11, 2005

little overzelious for my liking but seems fuctional

 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.