]> jfr.im git - irc/kvirc/KVIrc.git/commitdiff
Document the AVATAR negotiation protocol (#2511)
authorSoni L <redacted>
Wed, 25 Aug 2021 23:48:32 +0000 (20:48 -0300)
committerGitHub <redacted>
Wed, 25 Aug 2021 23:48:32 +0000 (00:48 +0100)
src/kvilib/irc/KviAvatar.cpp

index a5a34313e818c314bb748007e5f038eb3487e20e..d3c3a6f88a50cae30d3337abc9149850ef866ea6 100644 (file)
                Every IRC user has a client-side property called AVATAR. Let's say that there
                are two users: A and B.[br]
                When user A wants to see the B's avatar he simply sends a CTCP AVATAR request
-               to B (the request is sent through a PRIVMSG IRC command).[br]
+               to B (the request is sent through a PRIVMSG IRC command). The presence of the avatar
+               is announced by the ASCII sequence ETX, one of '0'-'7', SI, which doesn't show up
+               on IRC clients, at the start of B's realname, where bit 2 (the fours place) of the
+               ASCII digit is set when an avatar is present. (Bits 0 and 1 are unrelated to avatar
+               negotiation and should be left unset if not being used.)[br]
                User B replies with a CTCP AVATAR notification (sent through a NOTICE IRC command)
                with the name or URL of his avatar.[br]
                The actual syntax for the notification is:[br]