You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/network-icon.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ copyrights:
7
7
name: "Simon Ser"
8
8
period: "2025"
9
9
email: "contact@emersion.fr"
10
+
-
11
+
name: "Sadie Powell"
12
+
period: "2026"
13
+
email: "sadie@witchery.services"
10
14
---
11
15
12
16
## Notes for implementing work-in-progress version
@@ -23,10 +27,20 @@ The `NETWORK` ISUPPORT token allows servers to advertise their network name. Thi
23
27
24
28
## The `draft/ICON` ISUPPORT token
25
29
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.
27
33
28
34
Servers MAY implement [extended-isupport](extended-isupport.html) to allow clients to fetch the network icon before connection registration.
29
35
30
-
## Example
36
+
## Examples
37
+
38
+
This section is non-normative.
39
+
40
+
Server using an SVG icon:
31
41
32
42
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