This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
-
Moti
- Voice
- Posts: 15
- Joined: Fri Sep 20, 2013 12:36 pm
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 !
-
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.
-
Moti
- Voice
- Posts: 15
- Joined: Fri Sep 20, 2013 12:36 pm
Post
by Moti »
Working great.
Thank you !