Anope IRC Services  Version 2.0
Data Structures | Macros | Enumerations | Functions | Variables
os_news.cpp File Reference
#include "module.h"
#include "modules/os_news.h"
Include dependency graph for os_news.cpp:

Go to the source code of this file.

Data Structures

struct  MyNewsItem
 
class  MyNewsService
 
class  NewsBase
 
class  CommandOSLogonNews
 
class  CommandOSOperNews
 
class  CommandOSRandomNews
 
class  OSNews
 

Macros

#define lenof(a)   (sizeof(a) / sizeof(*(a)))
 

Enumerations

enum  {
  MSG_SYNTAX, MSG_LIST_HEADER, MSG_LIST_NONE, MSG_ADDED,
  MSG_DEL_NOT_FOUND, MSG_DELETED, MSG_DEL_NONE, MSG_DELETED_ALL
}
 

Functions

static const char ** findmsgs (NewsType type)
 

Variables

struct NewsMessages msgarray []
 
static unsigned cur_rand_news = 0
 

Macro Definition Documentation

#define lenof (   a)    (sizeof(a) / sizeof(*(a)))

Definition at line 134 of file os_news.cpp.

Referenced by findmsgs().

Enumeration Type Documentation

anonymous enum
Enumerator
MSG_SYNTAX 
MSG_LIST_HEADER 
MSG_LIST_NONE 
MSG_ADDED 
MSG_DEL_NOT_FOUND 
MSG_DELETED 
MSG_DEL_NONE 
MSG_DELETED_ALL 

Definition at line 17 of file os_news.cpp.

Function Documentation

static const char** findmsgs ( NewsType  type)
static

Definition at line 135 of file os_news.cpp.

References lenof, and NewsMessages::msgs.

Referenced by NewsBase::DoNews().

Variable Documentation

unsigned cur_rand_news = 0
static

Definition at line 370 of file os_news.cpp.

Referenced by OSNews::DisplayNews().

struct NewsMessages msgarray[]

Definition at line 29 of file os_news.cpp.