From 9f5d94b24d848932ca0e984446f2ca4deeb14929 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Wed, 20 Jan 2016 07:40:13 +0100 Subject: [PATCH] Announcements module added. --- modules/announcements/announcements.go | 21 +++++++++++++++++++++ modules/sc/sc.go | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 modules/announcements/announcements.go diff --git a/modules/announcements/announcements.go b/modules/announcements/announcements.go new file mode 100644 index 0000000..7d237af --- /dev/null +++ b/modules/announcements/announcements.go @@ -0,0 +1,21 @@ +// vi:ts=4:sts=4:sw=4:noet:tw=72 + +package announcements + +import ( + "log" + + "github.com/sorcix/irc" +) + +var ( + sayCh chan string +) + +func Init(ch chan string) { + log.Println("Initializing announcements module") + sayCh = ch +} + +func HandleMessage(m *irc.Message) { +} diff --git a/modules/sc/sc.go b/modules/sc/sc.go index baeb426..3c18b2c 100644 --- a/modules/sc/sc.go +++ b/modules/sc/sc.go @@ -1,4 +1,4 @@ -// vim:ts=4:sts=4:sw=4:noet:tw=72 +// vi:ts=4:sts=4:sw=4:noet:tw=72 package sc