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 

[SOLVED] check if channel or URL exist

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Sat Apr 11, 2009 1:56 pm    Post subject: [SOLVED] check if channel or URL exist Reply with quote

Hi,

I've been trying to do this but no success. I'm sure there's a way to do it (especially with channel names)

I'd like to use a command on my spamfilter to check if the spammed URL or channel name really exist. I tried with [validchan channame] or [isdynamic chan] (btw, I don't know what is a dynamic channel), but I couldn't get arround with it. How could I make my bot know if a certain chan (not necessarily with records on the chan file) exists and is registered?

the same applies to URLs. I made a script that pinged the host and if he received an answer, he URL would exist, but this doesn't work with URLs like http://somesite.com/directory/user1 ... it just works with IPs and hosts :/

I guess the URL part is more difficult, so if I'd be glad if I could know the channel name command. Thanks in advance.

Fill


Last edited by Fill on Sun Apr 12, 2009 6:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Sat Apr 11, 2009 3:09 pm    Post subject: Reply with quote

Hi,
I was wondering how would I extract the domain name from a URL? If someone says http://www.something.com/directory1/usercontrol/somethinghere.aspex?=id.shutmeup, the bot extracts the domain name ---> somthing.com <--- and pings it (because my problem with pinging URLs is the sub-directories on the server. I think this would be the solution to my question about URLs checking... about the chan checking I have no idea, please help me Razz
Back to top
View user's profile Send private message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Sun Apr 12, 2009 6:10 pm    Post subject: Reply with quote

done, discovered myself
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 -> Scripting Help 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