예제 #1
0
func pingHandler(s ircx.Sender, m *irc.Message) {
	s.Send(&irc.Message{
		Command:  irc.PONG,
		Params:   m.Params,
		Trailing: m.Trailing,
	})
}
예제 #2
0
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},
		})
	}

}