Jethro commented on a Page, Kick for posting link  -  Dec 04, 2011

Regex is a little advanced for people who've started out with MSL. You can match for http:// and www. to catch any kind of link. You can use $count(), which functions the same as the isin operator:

on @*:text:*:#:{
if ($count($strip($1-),http://,www.)) {
ban -ku600 # $nick 2 Whoa! $nick $+ , Don't Post links in here without permission from a mod.. Cya in 10 mins B)
}
}

Your kick message states that you want to see the offender in 10 minutes (600 seconds), which means you can use the /ban command and its -k and -u switch to kick and ban his or her type 2 address simultaneously. The @ by the text event is to make sure the client that runs the code is opped.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.