I didn't look at the script itself but westor edited the $isurl alias I gave him, he actually broke it, the pattern for the regex call should be in a variable or similar form of escaping, otherwise, the comma in the pattern is taken as an argument seperator, try with this alias instead:

Code:
alias isurl {
var %p m@((?:(?:https?|ircs?)://(?:www\.)?|www\.)((?:(?:[-\w]+\.)+)[-\w]+)(?::\d+)?(?:/(?:[-a-zA-Z;/\d#:_?=&,().]*))?)@ig
  noop $regex(isurl,$1-,%p)
  if ($prop == all) {
	var %a 1
	while ($regml(isurl,%a)) { var %url = %url $v1 | inc %a 2 }
	return $iif(%url,%url,0)
  }
  return $iif($prop isnum 0-,$regml(isurl,$prop),$iif($regml(isurl,0),$true,$false))
}


Worth nothing the pattern originally was an identifier, called with $regex(isurl,$1-,$url_pattern), and this method is somewhat better because it avoids any complication from the mirc parser, indeed if the pattern had a '%' after the comma and a space after some more character, /var would interpret it as a new variable declaration.

@westor if you edit, break a code and then state I made it, I'm not going to be happy cry

Last edited by Wims; 26/01/16 10:09 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel