ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/include/intermud.h

HOME :: include :: intermud.h
/*  intermud.h

    Copyright (C) 1994-2000 Annihilator 

    This program is a part of ES2 mudlib. Permission is granted to use,
    modify, copy or distribute this program provided this copyright notice
    remains intact and subject to the restriction that this program MAY
    NOT be used in any way for monetary gain.

    Details of terms and conditions is available in the Copyright.ES2 file.
    If you don't receive this file along with this program, write to the
    primary author of ES2 mudlib: Annihilator 
*/

#ifndef INTERMUD_H
#define INTERMUD_H

#define ENABLE_ANTISPAM

// socket 型態常數

#define MUD 0
#define STREAM 1
#define DATAGRAM 2
#define STREAM_BINARY 3
#define DATAGRAM_BINARY 4

#define MUDLIST_SERVER "203.71.88.240"
#define MUDLIST_SERVER_PORT 4004
//#define MUDLIST_SERVER "140.113.206.148"
//#define MUDLIST_SERVER_PORT 8008
#define MUDLIST_UPDATE_INTERVAL 1800

#define INTERMUD_D ("/adm/intermud/i2d.c")
#define INTERMUD_UDP_PORT ((MUD_PORT)+4)
#define INTERMUD_SERVICE(x) ("/adm/intermud/_" + x)

#define SECURED_INTERMUD_EVENT \
if( previous_object() != load_object(INTERMUD_D) ) \
    error("Permission denied.\n")

#define SECURED_INTERMUD_API \
if( geteuid(previous_object()) != ROOT_UID ) \
    error("Permission denied.\n")

/*  定義這個符號會讓 i2d 將系統收集到的 mudlist 存檔。
 */
#define SAVE_MUDLIST

/*  定義這個符號會讓 i2d 自動產生一個簡短的代號, 用來指定特定 mud。
 */
#define AUTO_ALIAS

#endif /* INTERMUD_H */
HOME :: include :: intermud.h