You probably still misunderstand what I'm saying. However, whether you understand or not, this will be my last post on this cause I don't care to argue anymore.
For one thing, I mentioned it as an operator originally. Cause it would be most valuable in ON HOTLINK. Currently I'm using if ($left($1,-2) isalnum) to do this, despite it being flawed in this method.
Second, I'd want it built in. I believe it would be useful in many occasions instead of people having to rely on scripting a custom identifier. Below are some examples. I may make some mistakes in the below, but you get the idea.
ON *:TEXT:*:#:{
if ($me !isop $chan) { halt }
var %a
while (%a < $gettok($1-,0,32)) {
inc %a
if ($gettok($1-,%a,32) isurl) { kick $chan $nick Advertising | halt }
}
}
ON ^*:HOTLINK:*:*:if ($1 isurl) { return } | else { halt }
ON *:HOTLINK:*:*:run c:\Program Files\Internet Explorer\iexplore.exe
http://dictionary.reference.com/search?q= $+ $1
What happens when an URL is filled with colors and codes? Would what you said still work?