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.

tcl script help

Old posts that have not been replied to for several years.
Locked
b
b|_ack
Voice
Posts: 6
Joined: Thu Feb 10, 2005 4:25 am

tcl script help

Post by b|_ack »

Hello
I was wondering if you can make a tcl that can be used in a channel making ban to every nickname ,but not the protected friends that have +f , that contains one from the following words
"jim" "boy" "steve" "bob".Thank you for your time.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Are you willing to learn to script this yourself or do you want one of us to write it for you?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

if you mean that you don't want your flood protection scripts to apply on +f users then you can add a check into your procs like:

Code: Select all

if {[matchattr $hand f|f $chan]} { return 0 }
Taking into consideration that $hand and $chan might differ depending on the proc (refer to tcl-commands.doc for more help over procs for each bind)
Just create a new user and give him the +f flag then add hosts such as *jim*!*@*

Use the .help console command for help on partyline commands if you don't know.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can also match the hosts too, by the way:

Code: Select all

if {[string match -nocase "jim*!*@*" "$nick!uhost"] || [string match -nocase "boy*!*@*" "$nick!uhost"] || [string match -nocase "steve*!*@*" "$nick!uhost"] || [string match -nocase "bob*!*@*" "$nick!uhost"] && [matchattr $hand f|f $chan]} { return 0 }
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked