Auto voice

By Krobeluskill on Jan 24, 2007

Place in remotes, when a user joins a channel it checks if auto voice for that channel is on.

on @:TEXT:!avoice*:#:{
if ($2 == on) set $($+(A-V,$chan),2) on
if ($2 == off) unset $($+(A-V,$chan),2)
}
on *:JOIN:#:{ if ( $($+(A-V,$chan),2) == on) mode $chan +v $nick
else if ( $($+(A-V,$chan),2) == $null) halt
}

Comments

Sign in to comment.
Krobeluskill   -  Jan 26, 2007

Thanks DarthReven, Updated.

 Respond  
DarthReven   -  Jan 25, 2007

Better then \"%A-V $+ [ $+ $chan $+ ]\" lets use \"$($+(A-V,$chan),2)\" makes the code alot cleaner

 Respond  
Krobeluskill   -  Jan 25, 2007

Yea weaver I could just, but I like extra :P

 Respond  
Lindrian   -  Jan 24, 2007

I would make it: (dunno if its correct)
on @:TEXT:!avoice:#:{
if ($2 == on) { set %A-V $+ [ $+ $chan $+ ] on }
if ($2 == off) { unset %A-V $+ [ $+ $chan $+ ] }
}
on
:JOIN:#:{
if (%A-V $+ [ $+ $chan $+ ] == on) mode $chan +v $nick }
else if ( %A-V $+ [ $+ $chan $+ ] == $null) halt }
}

 Respond  
Krobeluskill   -  Jan 24, 2007

Yea well I thought that aswell but it seemed to work in another script so why not do it here.

 Respond  
Lindrian   -  Jan 24, 2007

I have no clue here, but shoudnt there be a opening bracket and a closing one at \'if statements\'? (dont flame me, were here to learn after all :x)

 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.