Add "open" URL param

This can be set to an irc:// URL to open. This is useful for
bouncers.
This commit is contained in:
Simon Ser
2021-11-08 12:33:02 +01:00
parent 14031c594b
commit f3c48a3748
2 changed files with 64 additions and 17 deletions
+2
View File
@@ -83,6 +83,7 @@ gamja settings can be overridden using URL query parameters:
- `server`: path or URL to the WebSocket server
- `nick`: nickname
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
- `open`: [IRC URL] to open
Alternatively, the channels can be set with the URL fragment (ie, by just
appending the channel name to the gamja URL).
@@ -134,3 +135,4 @@ Copyright (C) 2020 The gamja Contributors
[mailing list]: https://lists.sr.ht/~emersion/public-inbox
[issue tracker]: https://todo.sr.ht/~emersion/gamja
[Parcel]: https://parceljs.org
[IRC URL]: https://datatracker.ietf.org/doc/html/draft-butcher-irc-url-04