Parsing Services (Nick, Chan, Memo) - 02/06/03 04:40 PM
Hi I am trying to make windows to display notices from the network's services, and this is what i got:
This works good to open the windows and shoot the text to the window, but how do i preserve the formatting. For example:
But this is displayed in the @Nickserv window:
And i WANT it to be like this:
any one know how i can keep the formatting that the server sends?
thanks
Code:
on *:NOTICE:*:?:{ if ($nick == NickServ) { window -e @Nickserv aline @nickserv $1- } if ($nick == ChanServ) { window -e @Chanserv aline @Chanserv $1- } if ($nick == MemoServ) { window -e @Memoserv aline @Memoserv $1- } }
This works good to open the windows and shoot the text to the window, but how do i preserve the formatting. For example:
Code:
From The Server: [11:19:48] -NickServ- Nick1 Nick1@215.216.i.bwrd.com [11:19:48] -NickServ- Nickss Nickss@195.214.i.bwrd.com [11:19:48] -NickServ- TNick TNick@143.285.i.bwrd.com [11:19:48] -NickServ- xtranick xtranick@210.159.i.bwrd.com
But this is displayed in the @Nickserv window:
Code:
Nickss Nickss@195.214.i.bwrd.com TNick TNick@143.285.i.bwrd.com xtranick xtranick@210.159.i.bwrd.com Nick1 Nick1@215.216.i.bwrd.com
And i WANT it to be like this:
Code:
Nickss Nickss@195.214.i.bwrd.com TNick TNick@143.285.i.bwrd.com xtranick xtranick@210.159.i.bwrd.com Nick1 Nick1@215.216.i.bwrd.com
any one know how i can keep the formatting that the server sends?
thanks