egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Moti
Voice


Joined: 20 Sep 2013
Posts: 15

PostPosted: Sun Jan 05, 2014 6:06 am    Post subject: How to change my auto voice script to not voice ignored user Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sun Jan 05, 2014 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Moti
Voice


Joined: 20 Sep 2013
Posts: 15

PostPosted: Sun Jan 05, 2014 1:20 pm    Post subject: Reply with quote

Working great.
Thank you ! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber