| View previous topic :: View next topic |
| Author |
Message |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Sat Apr 11, 2009 1:56 pm Post subject: [SOLVED] check if channel or URL exist |
|
|
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 |
|
 |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Sat Apr 11, 2009 3:09 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Sun Apr 12, 2009 6:10 pm Post subject: |
|
|
| done, discovered myself |
|
| Back to top |
|
 |
|