Skip to content

Commit 6f6fb4e

Browse files
committed
Add the {size} template variable to the network-icon spec.
1 parent 78c4267 commit 6f6fb4e

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

extensions/network-icon.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ copyrights:
77
name: "Simon Ser"
88
period: "2025"
99
email: "contact@emersion.fr"
10+
-
11+
name: "Sadie Powell"
12+
period: "2026"
13+
email: "sadie@witchery.services"
1014
---
1115

1216
## Notes for implementing work-in-progress version
@@ -23,10 +27,20 @@ The `NETWORK` ISUPPORT token allows servers to advertise their network name. Thi
2327

2428
## The `draft/ICON` ISUPPORT token
2529

26-
If a server publishes a `draft/ICON` ISUPPORT token, the value MUST be a URL to an image. The URL SHOULD use the "https" scheme.
30+
If a server publishes a `draft/ICON` ISUPPORT token, the value MUST be a URL to an image. This image SHOULD be square. The URL SHOULD use the "https" scheme.
31+
32+
The URL MAY contain the `{size}` template variable that clients MUST replace with an integer to request a specific image size in pixels. Clients MUST treat this template variable as a hint and MUST NOT assume that they will get the exact same size image back as requested.
2733

2834
Servers MAY implement [extended-isupport](extended-isupport.html) to allow clients to fetch the network icon before connection registration.
2935

30-
## Example
36+
## Examples
37+
38+
This section is non-normative.
39+
40+
Server using an SVG icon:
3141

3242
S: :irc.example.org 005 * NETWORK=Example draft/ICON=https://example.org/icon.svg :are supported by this server
43+
44+
Server using a PNG icon that can be scaled using the `{size}` template variable:
45+
46+
S: :irc.example.org 005 * NETWORK=Example draft/ICON=https://example.net/icon.png?size={size} :are supported by this server

0 commit comments

Comments
 (0)