💾 Archived View for missbanal.net › perfect-znc-setup captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
Published the 2021-05-28 on Stacy Harper's blog
By default, ZNC handle the playback. When no client is connected, it will store missed messages and play them back when you log in with an IRC client.
But if you got multiple IRC client in multiple device, login with one of them will make the others to never receive the messages.
clientbuffer is a module to fix that ! It will track what message all of your IRC clients received.
We have to compile it as it is not a base module.
$ apt install unzip znc-dev $ curl -o v1.0.48.zip https://github.com/CyberShadow/znc-clientbuffer/archive/refs/tags/v1.0.48.zip $ unzip v1.0.48.zip $ cd znc-clientbuffer-1.0.48/ $ znc-buildmod clientbuffer.cpp $ mkdir -p /var/lib/znc/modules/ $ cp clientbuffer.so /var/lib/znc/modules/
Use this as username: "username@CLIENTNAME/network"
Here CLIENTNAME will be used by clientbuffer to identify this client. Make it unique per client.
/msg *controlpanel set AutoClearChanBuffer $me False /msg *controlpanel set AutoClearQueryBuffer $me False /msg *status LoadMod clientbuffer autoadd timelimit=86400
- AutoClearChanBuffer and AutoClearQueryBuffer must be toggled to false. It make ZNC to not mark every messages as read cause we want clientbuffer to handle them.
- autoadd make clientbuffer to automatically load a client when a new one connect itself.
- timelimit make the history size to not exceed one day. You could remove it if you want all history in all of your clients.
If this post inspired you, feels free to leave a comment !