hey all,

i'm trying to write a script where everytime a user says something in the main channel (a bot, actually), the script will automatically copy what that person (or bot) said and open a new window and paste it there.

kinda like:

[9:00a] (JohnDoe) New Announcement: <New Forum Post> Title: 'How to write IRC scripts' posted by 'JaneDoe' - [In this tutorial, JaneDoe will try to help r0uJe with his IRC script.] - To read more about this post, visit - http://www.pleasehelpmemakemyscriptwork.com

...and then the script will automatically open a new window (named JohnDoe for example) and it'll basically copy all that JohnDoe said.

here's my non-working script so far:

Code:
on *:TEXT:*:#TestChannel:{
  if ($nick == JohnDoe) &amp;&amp; (New isin $1-) &amp;&amp; (Announcement isin $1-) {
    window -b @JohnDoe
    aline @JohnDoe 7[ $+ $time(hh:nn:ss) $+ 7] 4 $+ $1- 
  }
}


what happens when i use my script is that it only copies the first line or sentence which is:

[9:00a] (JohnDoe) New Announcement: <New Forum Post> Title: 'How to write IRC

...and it stops there. it does not copy the rest of the announcement (meaning, the next line(s) or sentence(s)).


thanks in advance!