File: motd.h

package info (click to toggle)
hybserv 1.9.2-4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 2,848 kB
  • ctags: 1,854
  • sloc: ansic: 37,037; sh: 3,167; makefile: 337
file content (36 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * motd.h
 * Hybserv2 Services by Hybserv2 team
 *
 * $Id: motd.h 1350 2005-11-29 11:40:00Z kreator $
 */

#ifndef INCLUDED_motd_h
#define INCLUDED_motd_h

#include "stdinc.h"
#include "config.h"

#define MESSAGELINELEN 256
#define MAX_DATESTRING 32

struct Luser;

struct MessageFileLine
{
	struct MessageFileLine *next;
	char *line;
};

struct MessageFile
{
	char *filename;
	struct MessageFileLine *Contents;
	char DateLastChanged[MAX_DATESTRING + 1];
};

void InitMessageFile(struct MessageFile *);
int ReadMessageFile(struct MessageFile *);
void SendMessageFile(struct Luser *, struct MessageFile *);

#endif /* INCLUDED_motd_h */