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.

i need tcl script

Old posts that have not been replied to for several years.
Locked
f
fryda

i need tcl script

Post by fryda »

Hy, i need a tcl script that will have a chanset command. This script will autovoice all people who joins the channel. Like .chanset +autovoice
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Re: i need tcl script

Post by duofruo »

bind join - * autovoice
setudef flag autovoice
proc autovoice {nick uhost hand chan} {
if {![string match *+autovoice* [channel info $chan]]} {return 0}
putserv "MODE $chan +v $nick"
}
This should work, i haven`t tested. U must set .chanset #channel +autovoice
Embrace The Inevitable
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Post by bobjuh »

or just search the egghelp TCL archive.
There are already a lot of script who does that.

Why reinvent the wheel ? :P
f
fryda

Post by fryda »

thx duofruo is great
Bob, yes they are they dont have chanset command :)
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

Hehe bob, i dont look, i faster wrote that script :)
Embrace The Inevitable
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Post by bobjuh »

duofruo wrote:Hehe bob, i dont look, i faster wrote that script :)
yw fryda

@ Duofruo

Go to school man :P
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

Lol bob, i am dressing right now :P
Bye all :). Time 12:36
Embrace The Inevitable
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Lil tip: instead of:

Code: Select all

if {![string match *+autovoice* [channel info $chan]]} {return 0}
use something like this:

Code: Select all

if {![channel get $chan +autovoice]} { return 0 }
Also, the autovoice flag already exists. Make another one or just remove the setudef flag autovoice line.
Once the game is over, the king and the pawn go back in the same box.
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

Oh, yes i forget that +autovoice allready exist. Grr
Embrace The Inevitable
Locked