3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

commands: Fix comment

This commit is contained in:
Daniel Oaks 2016-06-19 12:53:52 +10:00
parent 08225c201d
commit c2e5386966

View File

@ -7,14 +7,14 @@ package irc
import "github.com/DanielOaks/girc-go/ircmsg"
// Command represents a command accepted on a listener.
// Command represents a command accepted from a client.
type Command struct {
handler func(server *Server, client *Client, msg ircmsg.IrcMessage) bool
usablePreReg bool
minParams int
}
// Run runs this command with the given listener/message.
// Run runs this command with the given client/message.
func (cmd *Command) Run(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
if !client.registered && !cmd.usablePreReg {
// command silently ignored