What that does is calls your tinyurl alias if it detects a url but it passes it the whole line, ie the text before and after which will be confusing you tiny url generator.

You therefore would need to pass the actual url to the generator, which could be achieved by
Code:
on ^1:TEXT:*:#root: { 
  var %input = $1-
  if ( $regml($regex(%input,/((?:ftp:\/\/|https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/g)) && ( ($len(%input) > 51) )  ) { /tinyurl $regml($regex(%input,/((?:ftp:\/\/|https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/g))
  haltdef
}


I think that will work. Now someone else will come up with a much tidier way of doing it smile

Edit: Where did you find the tinyurl snippet incidentally?

Last edited by Aenei; 21/12/05 02:37 PM.