fix doc generatio

This commit is contained in:
Liam Stanley 2017-06-09 18:37:18 -04:00
parent 0ccd32d256
commit 6d03a9d57b

@ -53,20 +53,20 @@ func (c *Command) genHelp(prefix string) string {
// //
// An example of how you would register this with girc: // An example of how you would register this with girc:
// //
// ch, err := cmdhandler.New("!") // ch, err := cmdhandler.New("!")
// if err != nil { // if err != nil {
// panic(err) // panic(err)
// } // }
// ch.Add(&cmdhandler.Command{
// Name: "ping",
// Help: "Sends a pong reply back to the original user.",
// Fn: func(c *girc.Client, input *cmdhandler.Input) {
// c.Commands.ReplyTo(*input.Origin, "pong!")
// },
// })
// //
// client.Handlers.AddHandler(girc.PRIVMSG, ch) // ch.Add(&cmdhandler.Command{
// Name: "ping",
// Help: "Sends a pong reply back to the original user.",
// Fn: func(c *girc.Client, input *cmdhandler.Input) {
// c.Commands.ReplyTo(*input.Origin, "pong!")
// },
// })
//
// client.Handlers.AddHandler(girc.PRIVMSG, ch)
type CmdHandler struct { type CmdHandler struct {
prefix string prefix string
re *regexp.Regexp re *regexp.Regexp