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.

ban bad channels with special chars

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

ban bad channels with special chars

Post by rosc2112 »

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 :P
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Try xchannel.tcl by demond.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Creating a badchan script that doesn't choke on brackets/braces isn't hard at all.

the hard part is finding a public one :)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

How do you get [ into a list to even work with?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

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: Select all

foreach thing [array names badchan "#channel,*"] {
  if {[string equal -nocase "<channel you got from whois>" [lindex [split $thing ,] 1]]} {
 ban them
  }
}
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

That wouldn't solve the problem.. But, nevermind, I fixed it :P

http://forum.egghelp.org/viewtopic.php?t=9370
Post Reply