From 62171c5974bc805e91ae39845fe65432cf3b27fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 5 Apr 2023 23:45:01 +0200 Subject: [PATCH] irc: add more info in description of function irc_server_alloc_with_url (issue #1903) --- src/plugins/irc/irc-server.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 2411208f0..25f2077e3 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -1695,7 +1695,20 @@ irc_server_alloc (const char *name) } /* - * Initializes a server with URL of this form: irc://nick:pass@irc.toto.org:6667 + * Initializes a server with URL, using this format: + * + * irc[6][s]://[[nick][:pass]@]server[:port][/#chan1[,#chan2...]] + * + * Fields: + * - "irc": protocol (mandatory) + * - "6": allow use of IPv6 (with fallback on IPv4) + * - "s": use SSL + * - "nick": nickname to use on the server + * - "pass": password for the server (can be used as nick password on most + * servers) + * - "server": server address + * - "port": port (default is 6667 without SSL and 6697 with SSL) + * - "#chan1": channel to auto-join * * Returns pointer to new server, NULL if error. */