diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-03 02:05:38 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-03 02:05:38 +0000 |
commit | 65deeaf1e61242da81ca62059bcc3d5a342edcb6 (patch) | |
tree | 6d2df5dc1fd176dd3161b43f449df411aba672fb /include/services.h | |
parent | a1fe864c7ff5f5db093329ca6acb65b9c2cf93e8 (diff) |
Moved some of the news variables out of the news module so other modules etc can access them, if needed
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2604 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r-- | include/services.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/services.h b/include/services.h index 874c53675..d5596c833 100644 --- a/include/services.h +++ b/include/services.h @@ -1023,6 +1023,35 @@ typedef struct ignore_data { /*************************************************************************/ +/* News stuff */ + +#define MSG_MAX 11 + +enum NewsType +{ + NEWS_LOGON, + NEWS_RANDOM, + NEWS_OPER +}; + +struct newsmsgs +{ + NewsType type; + const char *name; + int msgs[MSG_MAX + 1]; +}; + +struct NewsItem +{ + NewsType type; + uint32 num; + std::string Text; + char who[NICKMAX]; + time_t time; +}; + +/*************************************************************************/ + /* Mail data */ struct mailinfo_ { |