#ifndef _WHOD_H
#define _WHOD_H
#define MUDNAME "WileyMUD"
#define OLDRFC1123FMT "%a, %d %b %Y %H:%M:%S GMT"
#define RFC1123FMT "%a, %d %b %Y %H:%M:%S %Z"
/*
* *** The following statement indicates the WHOD default mode
* Modes can be:
* SHOW_NAME
* SHOW_TITLE
* SHOW_SITE
* SHOW_ON
* SHOW_OFF
* SHOW_LEVEL
* SHOW_IDLE
* SHOW_ROOM
*/
#define DEFAULT_MODE ( SHOW_ON | SHOW_IDLE | SHOW_NAME | SHOW_TITLE | SHOW_ROOM_INGAME )
#define INVIS_LEVEL(ch) ((ch)->invis_level)
#define WIZ_MIN_LEVEL 50
#define WIZ_MAX_LEVEL 60
#define WHOD_DELAY_TIME 1
#define DISPLAY_LINKDEAD 1
#define WHOD_OPENING 1
#define WHOD_OPEN 2
#define WHOD_DELAY 3
#define WHOD_END 4
#define WHOD_CLOSED 5
#define WHOD_CLOSING 6
#define SHOW_ON 0x00000001
#define SHOW_OFF 0x00000002
#define SHOW_IDLE 0x00000004
#define SHOW_LEVEL 0x00000008
#define SHOW_NAME 0x00000010
#define SHOW_TITLE 0x00000020
#define SHOW_ROOM 0x00000040
#define SHOW_SITE 0x00000080
#define SHOW_ROOM_INGAME 0x00000100
#define WRITE(d,msg) if((write((d),(msg),strlen(msg)))<0){\
perror("whod.c - write");}
#ifndef _WHOD_C
/* static long disconnect_time; */
/* static int s; */
extern int whod_mode;
/* static int state; */
/* static int whod_port; */
#endif
void do_whod(struct char_data *ch, const char *arg, int cmd);
void init_whod(int port);
void close_whod(void);
void whod_loop(void);
#endif