on *:TEXT:!*filmtips*:#: {
if ($strip($1) == !filmtips ) { msg $chan 3http://www.com }
elseif ($strip($$1) == !addfilmtips) {
if (http://imdb.com/* iswm $2) || (http://www.imdb.com/* iswm $2) || ($2 == URL ) {
if ($left($3,1) isalpha) {
var %a = $+("C:\PATH\,$v1,.txt")
else var %a = $qt(C:\PATH\#.txt)
write %a $+(<a title=",$3-," href=",$2," target="_blank">,$3-,</a>
)
filter -ffcut 1 32 %a %a
msg $chan 3done
}
}
else { msg $chan 3the string must start with 'http://imdb.com/' or 'URL' }
}
}