summaryrefslogtreecommitdiff
path: root/modules/core/os_news.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-05-19 20:36:39 -0400
committerAdam <Adam@anope.org>2011-05-19 20:36:39 -0400
commit7e5727288d9b2da5b53476b91f8cb9fe96e14d53 (patch)
treea2857089bdd88c5438c65e4a0e947f262ae3565e /modules/core/os_news.h
parent13915d8b570fa13119c830b2a8a6f7e104cccedd (diff)
Fixed compile from the earlier merge
Diffstat (limited to 'modules/core/os_news.h')
-rw-r--r--modules/core/os_news.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/modules/core/os_news.h b/modules/core/os_news.h
new file mode 100644
index 000000000..c55f56d42
--- /dev/null
+++ b/modules/core/os_news.h
@@ -0,0 +1,39 @@
+#ifndef OS_NEWS
+#define OS_NEWS
+
+enum NewsType
+{
+ NEWS_LOGON,
+ NEWS_RANDOM,
+ NEWS_OPER
+};
+
+struct NewsMessages
+{
+ NewsType type;
+ Anope::string name;
+ const char *msgs[10];
+};
+
+struct NewsItem
+{
+ NewsType type;
+ Anope::string text;
+ Anope::string who;
+ time_t time;
+};
+
+class NewsService : public Service
+{
+ public:
+ NewsService(Module *m) : Service(m, "news") { }
+
+ virtual void AddNewsItem(NewsItem *n) = 0;
+
+ virtual void DelNewsItem(NewsItem *n) = 0;
+
+ virtual std::vector<NewsItem *> &GetNewsList(NewsType t) = 0;
+};
+
+#endif // OS_NEWS
+