This is from my old script modify if you want it, this code dont kick if some one put a email ex: blahblah@email.com
Urlkick and Message are alias you can put whatever you want in that alias.
Why I use a alias at the final of command? All under that alias is the trigger for the command.
This part "($nick(#, $nick, '.@))" specify the op levels of the nick who can put a link, the others can't write a link, you can change for whatever symbols of ops your mirc reading in irc channel.
/*
01000011 01101000 01100001 01110010 01101100 01100001 01110100 01100001 01101110
*/
on @!*:text:*:#:if (%Link. [ $+ [ # ] ] = yes) { Linkick $strip($1-) }
on @!*:action:*:#:if (%Link. [ $+ [ # ] ] = yes) { Linkick $strip($1-) }
alias -l Linkick {
var %l = $strip($1-)
if ($regex(%l,/(\S+)@(\S+)\.(\S+))/i) || ($regex(#,$nick)) || ($nick(#, $nick, '.@)) halt
if ($regex(%l,/(https?|www|irc|ftp)[:\.]|\.(com|net))/i) urlkick
elseif ($regex(%l,/(gro?upo?s|chats?|msn|buzzen|legion|vsixc))/i) message
halt
}
alias -l urlkick {
;Put whatever command you want in this area or put the command in the alias archive of the mirc under the name of urlkick.
}
alias -l message {
;Put whatever command you want in this area or put the command in the alias archive of the mirc under the name of message.
}
Menu Channel {
-
Protection
.$Iif(%Link. [ $+ [ # ] ] == yes, $Style(1)) Spam Protection: {
Set %Link. [ $+ [ # ] ] $Iif(%Link. [ $+ [ # ] ] == yes, no, yes)
Echo -at * 0Spam Protection $Iif(%Link. [ $+ [ # ] ] == yes, Activated, Desactivated)
}
}
-