diff options
Diffstat (limited to 'irc')
-rw-r--r-- | irc/tokens.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/irc/tokens.go b/irc/tokens.go index 064e4c5..276b4c2 100644 --- a/irc/tokens.go +++ b/irc/tokens.go @@ -297,9 +297,7 @@ func (msg *Message) Validate() (err error) { if len(msg.Params) < 3 { err = errNotEnoughParams } - case "PRIVMSG": - fallthrough - case "NOTICE": + case "PRIVMSG", "NOTICE": if len(msg.Params) < 2 { err = errNotEnoughParams } else if msg.Prefix == "" { |