mIRC Home    About    Download    Register    News    Help

Print Thread
#261175 11/08/17 03:24 PM
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
I found this old post by searching, I would like to exclude certain URL's from being banned but have no idea how
Quote:

on @*:TEXT:*:#: {
; The list of Urls/emails. Items should be separated by commas
var %swears = www.,http:,https:,.com,.nl,.net,.tk,.eu,@hotmail,@live
; Number of times to warn before banning
var %warns = 2

; The spacing is important in the following line
if (!$regex($nick(#,$nick).pnick,/[~@]/) && $count($strip($1-), [ %swears ] )) {
inc $+(%,swear.,$wildsite)
var %n = $($+(%,swear.,$wildsite),2)
if (%n <= %warns) {
.msg $chan 4 $nick $+ , 14dit is waarschuwing nr:4 $(%n) 14om geen website URL's/Emailadressen in de room te typen, na4 3 x14 volgt er een ban.) 3@ 12Room-Bot 3@
}
else {
ban -ku300 $chan $nick 2 14Je was gewaarschuwd4 $nick . 14Geen Website's/Emailadressen plaatsen in de room. 3@ 12Room-Bot 3@
unset $+(%,swear.,$wildsite)
}
}
}


Want to exclude links refering pertaining to my own network

Like If is http://www.newdawnirc.com/volwasseklets.html then return something like that?

Last edited by raycomp; 11/08/17 03:30 PM.
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
$count($strip($1-)

can be changed to

$count(remove($strip($1-),newdawnirc.com/volwasseklets))

Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
Thank you maroon wil try that


Link Copied to Clipboard