| View previous topic :: View next topic |
| Author |
Message |
Moti Voice
Joined: 20 Sep 2013 Posts: 15
|
Posted: Sun Jan 05, 2014 6:06 am Post subject: How to change my auto voice script to not voice ignored user |
|
|
Hi,
I have a script that if some user say a badword in the channel the eggdrop -v the user and ignore him.
| Code: | 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: | 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 ! |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Jan 05, 2014 7:06 am Post subject: |
|
|
by using isignore
| Code: |
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. |
|
| Back to top |
|
 |
Moti Voice
Joined: 20 Sep 2013 Posts: 15
|
Posted: Sun Jan 05, 2014 1:20 pm Post subject: |
|
|
Working great.
Thank you !  |
|
| Back to top |
|
 |
|