Heydrun

Using ZNC

ZNC is a bouncer: it stays connected to IRC for you, keeps what was said while you were away, and plays it back when you connect. This page is about what Heydrun does with ZNC. ZNC's own commands, modules and settings are on the ZNC wiki.

Setting up a ZNC network

  1. On the Networks screen, choose Add network, or edit an existing one.
  2. Under Connection, fill in ZNC's Host and Port, and Use TLS if your ZNC has it.
  3. Set Server type to ZNC bouncer.
  4. Fill in the fields that appear:
    • Username: your ZNC user name.
    • Network name (optional): which of your ZNC networks this profile connects to, such as libera.
    • Client ID (optional): a short name for this device, such as phone. See Client ID.
  5. Under Auto-connect & Password, enter your ZNC password in Server password (PASS). This is the usual way to log in to ZNC, and works with every version.

Enter only the password. Heydrun writes the login as ZNC expects it, user@clientid/network, such as alice@phone/libera, and sends it with the password. Typing the whole user/network:password yourself works too.

SASL PLAIN works only on a ZNC that accepts SASL from clients, such as ZNC 1.10 with its saslplainauth module loaded. There, you can turn on Enable SASL instead, with your ZNC password, and leave the SASL username blank to use the ZNC username.

IRC server, the default Server type, recognises ZNC by itself once connected, by the capabilities ZNC offers, and the network editor then says "Detected: ZNC", with a button to set Server type to ZNC bouncer. That's enough for playback, push and importing networks. Choose ZNC bouncer when you want a network name or a client ID, since those go into the login and must be set before connecting.

Either way, Heydrun doesn't auto-join channels on ZNC, because ZNC keeps you in them.

Your ZNC networks

When a ZNC profile without a network name is connected, its entry on the Networks screen has a Bouncer networks section. It lists the networks on your ZNC account, with each one's server and whether ZNC is connected to it. It's shown with Server type at ZNC bouncer, or at IRC server once ZNC is detected.

The list refreshes a moment after each change. Passwords in these commands are shown as dots where they're echoed. For anything else, such as changing a network's ident or quit message, use /cp (controlpanel) or ZNC's web interface.

Playback

ZNC keeps a buffer of recent lines for each channel and private message. How Heydrun gets them is set by Playback, shown with Server type at ZNC bouncer. It uses ZNC's playback module, which has to be loaded on ZNC; its instructions are with the module.

With Server type at IRC server, Heydrun uses Missed messages whenever the module is loaded.

Clear ZNC's copy after playback makes ZNC forget a buffer's lines once they've been played here. That's for all your clients, so leave it off if you also use ZNC from another device.

Played-back lines are shown with the times ZNC kept for them.

buffextras

ZNC's buffextras module keeps joins, parts, quits, kicks, nick changes, topics and modes in a channel's buffer, as lines from *buffextras. Heydrun shows them as those events, grouped, sounded and hidden like any other, rather than as messages. A ZNC set to another language words them differently, and those are shown as they come.

Client ID

With a Client ID, such as phone, ZNC logs this device in as alice@phone/libera. ZNC itself doesn't keep separate buffers per device, but some modules use the name, such as clientbuffer, which keeps each device's place apart. Such a module needs the client added on ZNC first; see the module's own instructions. Leave Client ID blank to share one place with your other clients.

ZNC's route_replies module needs nothing from Heydrun: it sends each reply, such as a WHOIS, only to the client that asked.

Your messages from other clients

Heydrun asks ZNC for what you send from your other devices, so a channel or private message reads the same everywhere.

Detaching from a channel

/detach, or Detach from channel in More actions, leaves a channel here while ZNC stays in it and keeps its history. With a screen reader, a channel in the buffer list has a Detach action too. /join brings it back. Heydrun offers this once ZNC is detected or chosen as the Server type.

Push notifications

While Heydrun isn't connected, ZNC can still tell your phone about mentions and private messages, with the znc-push module and a push app such as ntfy. Set up push notifications, in the network's Connection settings, loads the module if needed, for this network or for all networks on your ZNC account, and points it at your push app. These pushes aren't encrypted, so by default Heydrun asks only for who and where, not the message. Show message text in ZNC push, in Settings, IRC, under Push notifications, adds the text, but then it passes your push server, such as ntfy, readable by whoever runs it: turn it on only for a push server you trust or run yourself, and choose Set up push notifications again after changing it. soju's push is encrypted. See Push notifications through ZNC.

Away

Heydrun's Auto-away, in Settings, IRC, leaves bouncer connections alone unless you turn on Also on bouncer connections, since ZNC usually has a module that marks you away itself.

Commands

Heydrun has shortcuts that send a command to ZNC, with suggestions as you type:

What those commands do is ZNC's: see Using commands on the ZNC wiki, and each module's page. Any other module can be reached the long way, such as /msg *clientbuffer help.