From fb8c6340c8142874d3894c652b82889dd901a95b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 25 Aug 2020 11:49:22 +0200 Subject: [PATCH] Allow '/' in nickname This allows to specify a network name in the nickname. Closes: https://todo.sr.ht/~emersion/soju/91 --- downstream.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/downstream.go b/downstream.go index cf651a6..d27528e 100644 --- a/downstream.go +++ b/downstream.go @@ -57,7 +57,9 @@ var errAuthFailed = ircError{&irc.Message{ Params: []string{"*", "Invalid username or password"}, }} -const illegalNickChars = " :/@!*?" +// ' ' and ':' break the IRC message wire format, '@' and '!' break prefixes, +// '*' and '?' break masks +const illegalNickChars = " :@!*?" // permanentDownstreamCaps is the list of always-supported downstream // capabilities.