Skip to content
Help Center
Home / Help Center / I'm a developer

What is CR-Avatar?

A tiny open protocol that lets IRC networks show one emoji next to a nickname.

CR-AVATAR lets a registered person pick one emoji (from a fixed list of 184) to stand next to their name. It is text only: no pictures, no URLs, no uploads. On ConferenceRooms you see it in the Web Chat, and in IRC programs that support the protocol, such as Textce on Mac, iPhone and Windows. Everywhere else the emoji still shows as one line in /whois.

Four parts, four jobs

  person types  /avatar fox
        |
   [ IRC services ]   keep the emoji with the registered account            -> services authors
        |  server link: a services tag (SVSTAG)
   [ ircd ]           knows each user's avatar and tells clients about it   -> ircd authors
        |  005 token  +  capability  +  AVATAR messages  (and the /whois line, always)
   [ IRC client ]     shows the emoji in the user list, in chat, in /whois  -> client authors

What goes over the wire

WhatForm
Support005 token CR-AVATAR=1 (the number is the emoji list version); -CR-AVATAR if services leave.
Bulk and liveCapability conferencerooms.org/avatar; then :nick!user@host AVATAR <emoji> [<name>] after the channel's NAMES reply, after a JOIN, and on every change; AVATAR * means none.
Fallback/whois shows <nick> has an avatar set: <emoji> :<name>: (numeric 320).

Clients behind a bouncer

A bouncer only passes what it understands. ZNC passes the CR-AVATAR=1 token but does not offer the capability, so a client behind ZNC falls back to polite, quiet /whois lookups (about one every three seconds, silent, only when the network supports CR-AVATAR). That is slower but works.

Where next

ircd-hybrid module (download, install, tests), services authors, client authors, and the full specification.

Say hi in #CR.

Support Room

Ask HelpServ.

Type /hs in any room for help on every command.

Open the Web Chat