Function: erc-truncate-buffer-to-size

Truncates the buffer to the size SIZE.
If BUFFER is not provided, the current buffer is assumed. The deleted
region is logged if `erc-logging-enabled' returns non-nil.

(fn SIZE &optional BUFFER)