func pingHandler(s ircx.Sender, m *irc.Message) { s.Send(&irc.Message{ Command: irc.PONG, Params: m.Params, Trailing: m.Trailing, }) }
func (i *Bot) registerConnect(s ircx.Sender, m *irc.Message) { for _, ch := range i.channels { s.Send(&irc.Message{ Command: irc.JOIN, Params: []string{ch}, }) } }