mIRC Home    About    Download    Register    News    Help

Print Thread
#91070 20/07/04 02:29 AM
Joined: Jun 2004
Posts: 11
G
GhsT Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jun 2004
Posts: 11
i have this script that was working well for awhile but somehting has happend and its not working. I also want to add 2 other links that are acceptable to the channel but still ban any links other than the 3 i want listed in this script.
http://www.darkthrone.com/recruit.dt?uid=
http://www.kingsofchaos.com/recruit.php?uniqid=
http://www.planetbattleground.com/recruit.php?id=
These links all have letters/numbers after the = that can be any variable. If anyone can help me i would greatly appreciate it. confused

#91071 20/07/04 02:35 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327




New username: hixxy
#91072 20/07/04 03:45 AM
Joined: Jun 2004
Posts: 11
G
GhsT Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jun 2004
Posts: 11
Sorry I forgot to post the original can you maybe tell me whats wrong with this one as well. I seem to like the one above alot better anyways just curious what is wrong below Thanks again

on *:TEXT:*:#:{
if ($left($1-,3) == www) || ($left($1-,4) == http) {
if ($gettok($1-,-2,47) != www.planetbattleground.com){
ban -u30 $chan $nick 3
kick $chan $nick Unacceptable Link!!!
halt
} }

#91073 20/07/04 08:44 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701

on @*:text:*:#:{
if ($regex($1-,/[color:orange]http:\/\/www\.
(?!(?:darkthrone\.com\/recruit\.dt\?uid[color:blue]|kingsofchaos\.com\/recruit\.php\?uniqid|planetbattleground\.com\/recruit\.php\?id[/color])=\d+\b)|http:\/\/(?!www)|(?<!\/\/)www\./S) {
ban -ku30 $chan $nick Unacceptable Link!!!!
}
}[/color]


You can fit it on one line if you want grin

(in short: find instances of http://www. with no darkthrone, kingsofchaos or planetbattleground behind or instances of http:// with no www after or instances of www with no :// before)

#91074 20/07/04 09:02 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Yours will work to "some degree" however its very inexact, for example yours requires the spammer to 'spam' the url in the first word of the sentence.. either of the 2 posted here are great alternatives, although one more geek looking than the other *looks at kelder*

Eamonn.

#91075 22/07/04 09:15 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
just curious what is wrong below
Spacing
This: if ($gettok($1-,-2,47) != www.planetbattleground.com){
Should be if ($gettok($1-,-2,47) != www.planetbattleground.com) {


Link Copied to Clipboard