Hello everyone, i have example working code:
Code:
on *:TEXT:!CommandForAddUrl*:#: { write fileWithAddedInfo.txt Added: $nick : $2-
  msg $chan You done it, i am write it!  $nick $+ ! 
}


It worked, but this code not doing two things:

1)does not filter the file before writing, for finding matches url and if he found matches, he write about that in $chan and will not write this url in file.

2)Does not ignore empty message, just write empty line.

I correctly understand that this can be done with / filter ? where can I embed this part of the code