Skip to content

Using Circe with IRC bouncers like ZNC

Vasilij Schneidermann edited this page Apr 10, 2020 · 2 revisions

What is a bouncer?

A bouncer is a program which runs on a server. You then connect through IRC with your IRC-client Circe to that bouncer. The bouncer is connected to one or more IRC-networks, e.g. Freenode. It can do many things, e.g. it can log messages which it'll show you when you reconnect.

ZNC is a common bouncer.

A /znc command for Circe

You might want to add a /znc command:

(defun circe-command-ZNC (what)
  "Send a message to ZNC incorporated by user '*status'."
  (circe-command-MSG "*status" what))

Ask for password only once

For each network to which your bouncer stays connected, you have to connect your Circe separately. If you use read-passwd to make Circe ask you for your password for a network, it might get exhausting and redundant to have to type in the password as often as the number of networks to which your bouncer stays connected. You can use something like this instead:

(defun own/circe-all-bouncer ()
  "connect to all irc-servers with circe via bouncer."
  (interactive)
  (let ((pass (read-passwd "password for MyNickName@bouncer: ")))
    (circe "freenode" :pass pass)
    ;; ...
    (circe "oftc" :pass pass)))
Clone this wiki locally