How to change my auto voice script to not voice ignored user

Help for those learning Tcl or writing their own scripts.
Post Reply
M
Moti
Voice
Posts: 15
Joined: Fri Sep 20, 2013 12:36 pm

How to change my auto voice script to not voice ignored user

Post by Moti »

Hi,

I have a script that if some user say a badword in the channel the eggdrop -v the user and ignore him.

Code: Select all

putquick "mode $chan -v $nick"
          newignore $mask $botnick "Swear Devoice Ignore" 0
And I have another script that auto voice any user who join the channel:

Code: Select all

bind join -|- "#channel *" autovoice
 proc autovoice {nick uhost hand chan} {
 putserv "mode $chan +v $nick"
 }
How I can create rule that if user is in the ignore list the eggdrop not voice him when he join to the channel?

Thank you !
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

by using isignore

Code: Select all

bind join * "#channel *" autovoice

proc autovoice {nick uhost hand chan} {
	if {[isbotnick $nick] || ![botisop $chan]} return
	if {[isignore $nick!$uhost]} return
	pushmode $chan +v $nick
}
Once the game is over, the king and the pawn go back in the same box.
M
Moti
Voice
Posts: 15
Joined: Fri Sep 20, 2013 12:36 pm

Post by Moti »

Working great.
Thank you ! :)
Post Reply