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.

Voice script

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Voice script

Post by Cr4sh »

I've this simple line for to give voice to everyone that joins the channel:

Code: Select all

proc join:AutoVoice {nick host handle chan} {
    putserv "mode $chan +v $nick"
}
It works good but if I want that all the operator (bot included) are not voiced, how i must modify?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Add the operators to the bot with +o flag and use:

Code: Select all

proc join:AutoVoice {nick host handle chan} {
    if {[isbotnick $nick] || [matchattr $handle |o $chan]} {return 0}
    putserv "mode $chan +v $nick"
}
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

Sir_Fz wrote:Add the operators to the bot with +o flag and use:
Thanks, just a few and it's ok...
Now the bot don't give +v to himself but already give to me.
I'm added as owner.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

use o|o instead of |o.
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

Thank you very much, now works perfectly!!
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

I've used .adduser command to add to the bot's list the opped user, but it gives them +v again.... :?: :cry:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Cr4sh wrote:I've used .adduser command to add to the bot's list the opped user, but it gives them +v again.... :?: :cry:
Their hosts probably changed.
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

Ok, this's possible i don't verify it again, then there's a way to resolve?
d
dq
Voice
Posts: 32
Joined: Mon Apr 03, 2006 12:28 am

Re: Voice script

Post by dq »

Cr4sh wrote:I've this simple line for to give voice to everyone that joins the channel:

Code: Select all

proc join:AutoVoice {nick host handle chan} {
    putserv "mode $chan +v $nick"
}
It works good but if I want that all the operator (bot included) are not voiced, how i must modify?
How about voice certain nicks?
Post Reply