| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Mar 02, 2006 9:51 pm Post subject: ban bad channels with special chars |
|
|
Along the same lines as my previous note, is there *any* bad channel ban script that can handle brackets ({ and [ for example) and other special chars without choking? This is frustrating  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Mar 02, 2006 9:56 pm Post subject: |
|
|
Try xchannel.tcl by demond. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Mar 03, 2006 4:04 am Post subject: |
|
|
Creating a badchan script that doesn't choke on brackets/braces isn't hard at all.
the hard part is finding a public one  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Mar 03, 2006 6:18 am Post subject: |
|
|
| How do you get [ into a list to even work with? |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Mar 03, 2006 12:07 pm Post subject: |
|
|
Why do you need a list in the first place?
You could just make an array.
like, badchan(<channel joined>,<badchan>) <whatever>
simply check the whole array ie,
| Code: |
foreach thing [array names badchan "#channel,*"] {
if {[string equal -nocase "<channel you got from whois>" [lindex [split $thing ,] 1]]} {
ban them
}
} |
|
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
|
| Back to top |
|
 |
|