diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-25 04:12:34 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-25 04:12:34 +0000 |
| commit | 0e8de37778d82c7909038b8847b92a98aff6f5e7 (patch) | |
| tree | e18ad05ecd82bb30ede854a3336e5282daf9d4a1 /include | |
| parent | 338cb38ee833442c3fe4b1799fb1fefa9f80d3ef (diff) | |
Rewrote part of news system and moved it all to os_news.c. Removed src/news.c
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2584 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/extern.h | 16 | ||||
| -rw-r--r-- | include/services.h | 19 |
2 files changed, 0 insertions, 35 deletions
diff --git a/include/extern.h b/include/extern.h index 6faae04c7..a8aedc120 100644 --- a/include/extern.h +++ b/include/extern.h @@ -615,22 +615,6 @@ E void modules_unload_all(bool unload_proto); /* Read warnings near function sou E void ModuleDatabaseBackup(const char *dbname); E void ModuleRemoveBackups(const char *dbname); -/**** news.c ****/ - -/* Add news items. */ -E int add_newsitem(User * u, const char *text, int16 type); -/* Delete news items. */ -E int del_newsitem(int num, int16 type); -E int32 nnews, news_size; -E NewsItem *news; -E void get_news_stats(long *nrec, long *memuse); -E void load_news(); -E void save_news(); -E void display_news(User * u, int16 type); -E int do_logonnews(User * u); -E int do_opernews(User * u); -E int do_randomnews(User * u); - /**** nickserv.c ****/ E NickAlias *nalists[1024]; diff --git a/include/services.h b/include/services.h index 109723643..f530d9b2d 100644 --- a/include/services.h +++ b/include/services.h @@ -436,7 +436,6 @@ typedef struct mailinfo_ MailInfo; typedef struct akill_ Akill; typedef struct sxline_ SXLine; typedef struct hostcore_ HostCore; -typedef struct newsitem_ NewsItem; typedef struct exception_ Exception; typedef struct session_ Session; @@ -1013,14 +1012,6 @@ struct c_elist_entry { /*************************************************************************/ -/* Constants for news types. */ - -#define NEWS_LOGON 0 -#define NEWS_OPER 1 -#define NEWS_RANDOM 2 - -/*************************************************************************/ - /* Ignorance list data. */ typedef struct ignore_data { @@ -1081,16 +1072,6 @@ struct hostcore_ { /*************************************************************************/ -struct newsitem_ { - uint16 type; - uint32 num; /* Numbering is separate for login and oper news */ - char *text; - char who[NICKMAX]; - time_t time; -}; - -/*************************************************************************/ - struct exception_ { char *mask; /* Hosts to which this exception applies */ |
