egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ban bad channels with special chars

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Mar 02, 2006 9:51 pm    Post subject: ban bad channels with special chars Reply with quote

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 Razz
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Mar 02, 2006 9:56 pm    Post subject: Reply with quote

Try xchannel.tcl by demond.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Mar 03, 2006 4:04 am    Post subject: Reply with quote

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

the hard part is finding a public one Smile
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Mar 03, 2006 6:18 am    Post subject: Reply with quote

How do you get [ into a list to even work with?
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Mar 03, 2006 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Mar 03, 2006 12:34 pm    Post subject: Reply with quote

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

http://forum.egghelp.org/viewtopic.php?t=9370
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber