MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // news.h -- Definitionen fuer die Zeitung |
| 4 | // |
| 5 | // $Id: news.h 8809 2014-05-08 19:52:48Z Zesstra $ |
| 6 | |
| 7 | #define G_NAME 0 |
| 8 | #define G_OWNER 1 |
| 9 | #define G_SAVEFILE 2 |
| 10 | #define G_EXPIRE 3 |
| 11 | #define G_DELETERS 4 |
| 12 | #define G_WRITERS 5 |
| 13 | #define G_READERS 6 |
| 14 | #define G_DLEVEL 7 |
| 15 | #define G_WLEVEL 8 |
| 16 | #define G_RLEVEL 9 |
| 17 | #define G_MAX_MSG 10 |
| 18 | #ifdef TESTING |
| 19 | #define G_MAX_NUM 11 |
| 20 | #define G_MESSAGES 12 |
| 21 | #else |
| 22 | #define G_MESSAGES 11 |
| 23 | #endif |
| 24 | |
| 25 | #define M_BOARD 0 |
| 26 | #define M_WRITER 1 |
| 27 | #define M_ID 2 |
| 28 | #define M_TIME 3 |
| 29 | #define M_TITLE 4 |
| 30 | #define M_MESSAGE 5 |
| 31 | |
| 32 | static string user_euid(); |
| 33 | static void save_group_list(); |
| 34 | static void save_group(string grp,mixed group); |
| 35 | static mixed load_group(string name); |
| 36 | |