diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-17 20:21:03 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-17 20:21:03 +0200 |
commit | 190343edf7a6540352a03a4b0cde46ad6d538a01 (patch) | |
tree | 01f511b6343416824139c9488799a69eb1a056fa /irc/tokens.go | |
parent | irc: Handle CAP NEW/DEL/NAK before registration (diff) |
Add /names command
Diffstat (limited to 'irc/tokens.go')
-rw-r--r-- | irc/tokens.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/irc/tokens.go b/irc/tokens.go index 5c156b3..179454c 100644 --- a/irc/tokens.go +++ b/irc/tokens.go @@ -244,7 +244,7 @@ func (msg *Message) IsValid() bool { return 4 <= len(msg.Params) case rplWhoreply: return 8 <= len(msg.Params) - case "JOIN", "PART", "TAGMSG": + case "JOIN", "NICK", "PART", "TAGMSG": return 1 <= len(msg.Params) && msg.Prefix != "" case "PRIVMSG", "NOTICE", "TOPIC": return 2 <= len(msg.Params) && msg.Prefix != "" |