diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2020-10-19 14:25:14 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2020-10-19 14:25:14 +0200 |
commit | 94b025d595b27f2b6ed3c6e52e518cc7dafe09c9 (patch) | |
tree | c2dd9da1f0238330e69e42e0beaf1205fa8f02dc /irc/tokens.go | |
parent | Show topic changes (diff) |
Handle KICK messages
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 b09c884..1a4067e 100644 --- a/irc/tokens.go +++ b/irc/tokens.go @@ -311,7 +311,7 @@ func (msg *Message) IsValid() bool { return 8 <= len(msg.Params) case "JOIN", "NICK", "PART", "TAGMSG": return 1 <= len(msg.Params) && msg.Prefix != nil - case "PRIVMSG", "NOTICE", "TOPIC": + case "KICK", "PRIVMSG", "NOTICE", "TOPIC": return 2 <= len(msg.Params) && msg.Prefix != nil case "QUIT": return msg.Prefix != nil |