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.

[SOLVED] check if channel or URL exist

Help for those learning Tcl or writing their own scripts.
Post Reply
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

[SOLVED] check if channel or URL exist

Post by Fill »

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.
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

Post by Fill »

Hi,
I was wondering how would I extract the domain name from a URL? If someone says http://www.something.com/directory1/use ... d.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 :P
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

Post by Fill »

done, discovered myself
Post Reply