mirror of
https://github.com/anope/anope.git
synced 2026-07-10 22:43:14 +02:00
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
This commit is contained in:
@@ -32,30 +32,6 @@
|
||||
#define MSG_DELETED_ALL 11
|
||||
#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;
|
||||
};
|
||||
|
||||
std::vector<NewsItem *> News;
|
||||
|
||||
struct newsmsgs msgarray[] = {
|
||||
{NEWS_LOGON, "LOGON",
|
||||
{NEWS_LOGON_SYNTAX,
|
||||
|
||||
Reference in New Issue
Block a user