If buffer size is 0, don't save the buffer
use std namespace
Adjust to znc-1.0