sshirokov / ZNC.el

Make ERC and ZNC get along more goodest.
MIT License
56 stars 20 forks source link

Use self-message in query buffers #32

Open cg505 opened 5 years ago

cg505 commented 5 years ago

For those that save query buffers in ZNC, it is useful to see what messages you sent as well as what messages the other person sent. ERC can do this by default, but it doesn't send the necessary CAP. It seems sufficient to send

CAP REQ :znc.in/self-messsage
CAP END

when connecting. I have in my .emacs:

(advice-add #'erc-login :before (lambda ()
                                  (erc-server-send "CAP REQ :znc.in/self-message")
                                  (erc-server-send "CAP END")))

This does the trick. Consider putting this in ZNC.el as well?