url warning script - 04/11/12 09:36 PM
Hi,
I have this litle script dat warns, kicks, bans on swearing. No I edited it to make it act on emails, website url's. Now the problem. It responds on .com .net and stuff but not on websitename.com same for www. works fine but www.websitename does not work. Is it possible with a small fix to make it do what I like it to do?
The script:
I hope some one can help me.
Regards, Herman.
I have this litle script dat warns, kicks, bans on swearing. No I edited it to make it act on emails, website url's. Now the problem. It responds on .com .net and stuff but not on websitename.com same for www. works fine but www.websitename does not work. Is it possible with a small fix to make it do what I like it to do?
The script:
Code:
; Copy the following code into your remotes (Alt+R) ; Tye @ Undernet #Test-IRC on @*:TEXT:*:#: { ; The list of Urls/emails. Items should be separated by commas var %swears = www,www.,http,http:,https,https:,https://,http://,.com,.nl,nl,com,.com,.net,.tk,eu,@hotmail,@live ; Number of times to warn before banning var %warns = 2 var %x = $numtok(%swears,44) tokenize 32 $strip($1-) while (%x) && ($regex($nick($chan,$nick).pnick, /[~|@].*/) != 1) { if ($istok($1-,$gettok(%swears,%x,44),32)) { 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@ } elseif (%n > %warns) { ban -ku300 $chan $nick 2 14Je was gewaarschuwd4 $nick . 14Geen Website's/Emailadressen plaatsen in de room. 3@ 12Room-Bot 3@ unset $+(%,swear.,$wildsite) } } dec %x } } ; Reset all of the swear data on mIRC start on *:START: { unset %swear.* } ;$nick($chan, $nick).pnick ;($nick isreg $chan || $nick isvo $chan)
I hope some one can help me.
Regards, Herman.