The client buffer module maintains client specific buffers for identified clients. Detailed instructions are available on the module's page on the ZNC wiki.
This module was originally written by @jpnurmi, but as the original repository is no longer maintained, this fork is a continuation of his work.