From your example, I think you want to split up the line you send to a channel into two seperate lines? Or is what you showed just the echo in your own window and do you send it to the channel normally?
The first is not possible, the second is, by simply using two echo statements. Tghe example below will also wrap your lines, but again, ONLY in an echo to yourself. you cannot send the wrapped lines to the channel the way you described.
sample:
alias showwrap {
[color:green]; setting a line for testing[/color]
var %text = This is just another basic example I whipped up by reading the helpfile
var %x = 0
[color:green]; ACK. Call 9-1-1. I actually used a goto loop. In this example, I find it easier than a while loop :)[/color]
:displayline
[color:green]; variable to track the wrapped-line-number[/color]
inc %x
[color:green]; if the wrapped-line-to-be actually has any text in it....[/color]
if ($wrap(%text, verdana, 12, 100, %x)) {
[color:green]; use this line to echo the wrapped text to yourself[/color]
echo -a $ifmatch
[color:green]; and/or this one to send to the channel[/color]
.msg $active $ifmatch
goto displayline
}
}
output of the
echo -a $ifmatch
This is just
another basic
example I
whipped up by
reading the
helpfile
output of the
.msg $active $ifmatch
[23:16] <@LocutusofBorg> This is just
[23:16] <@LocutusofBorg> another basic
[23:16] <@LocutusofBorg> example I
[23:16] <@LocutusofBorg> whipped up by
[23:16] <@LocutusofBorg> reading the
[23:16] <@LocutusofBorg> helpfile
Note that sending to the channel can easily cause to trigger flood protection scripts by both channel ops and your IRC server !