/savebuf
/bread
are your friends...
I fail to see how they are relevant here.
The script I posted retrieves the non space tokenized version of the input, before it's actually executed. IE, I can do stuff with it like adding colors and whatnot and then execute it.
If I understand /savebuf correctly, you read the last line from the window, which thus is already sent out to other users, and therefor pointless.