flokati/modules/announcements.go

32 lines
466 B
Go
Raw Normal View History

2016-01-20 06:40:13 +00:00
// vi:ts=4:sts=4:sw=4:noet:tw=72
2016-02-15 23:17:42 +00:00
package modules
2016-01-20 06:40:13 +00:00
import (
"strings"
2016-01-20 06:40:13 +00:00
"github.com/sorcix/irc"
)
2016-02-15 23:17:42 +00:00
var ()
2016-01-20 06:40:13 +00:00
2016-02-15 23:17:42 +00:00
func init() {
MsgFuncs["announcements"] = anncouncementsHandleMessage
2016-01-20 06:40:13 +00:00
}
2016-02-15 23:17:42 +00:00
func anncouncementsHandleMessage(m *irc.Message) {
tok := strings.Split(m.Trailing, " ")
if len(tok) < 1 {
return
}
switch tok[0] {
case "!annadd":
/* add announcement */
case "!anndel":
/* delete announcement */
case "!annlist":
/* list announcement */
default:
}
2016-01-20 06:40:13 +00:00
}