Skip to content
This repository has been archived by the owner on Oct 27, 2018. It is now read-only.

Commit

Permalink
Check params length on MODE. Closes 42wim/matterircd#62
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Aug 19, 2016
1 parent 23d6894 commit b75c1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func DefaultCommands() Commands {
cmds.Add(Handler{Command: irc.JOIN, Call: CmdJoin, MinParams: 1, LoggedIn: true})
cmds.Add(Handler{Command: irc.LIST, Call: CmdList, LoggedIn: true})
cmds.Add(Handler{Command: irc.LUSERS, Call: CmdLusers})
cmds.Add(Handler{Command: irc.MODE, Call: CmdMode})
cmds.Add(Handler{Command: irc.MODE, Call: CmdMode, MinParams: 1, LoggedIn: true})
cmds.Add(Handler{Command: irc.MOTD, Call: CmdMotd})
cmds.Add(Handler{Command: irc.NAMES, Call: CmdNames, MinParams: 1, LoggedIn: true})
cmds.Add(Handler{Command: irc.NICK, Call: CmdNick, MinParams: 1})
Expand Down

0 comments on commit b75c1e5

Please sign in to comment.