imc2.c
imc2.c · 2.4 KB
From the archive TIMIMC2.zip
Download the archive « Back to the archive contents
// Tim Johnson // Started on May 1, 2004. // Use this however you want. // Connection data... #define HOSTNAME "hub01.muddomain.com" #define HOSTPORT 5000 // HostIP overrides HOSTNAME, in case the mud doesn't want to resolve addresses. //#define HOSTIP "127.0.0.1" // What name the network knows your mud as... #define MUDNAME "Sample" // Passwords... #define CLIENT_PW "sample" #define SERVER_PW "sample" // File to save data to, .o will be added automatically to the end. // This will have private stuff in it, don't put this in a directory where your wizards can read it. #define SAVE_FILE "/u/t/tim/imc/data" // COMMAND_NAME is the command that people type to use this network. #define COMMAND_NAME "imc2" // NETWORK_ID is what your mud calls this network. // This is the prefix that comes up on all messages to identify the IMC2 network. // Tells for example look like: // NETWORK_ID- Tim@TimMUD tells you: hi // Make it similar to the command name, so players will understand. #define NETWORK_ID "IMC2" // DATA_LOG is where packets are logged to. // Turn this off when not working on the system, as it invades privacy. // Comment this out to turn it off. #define DATA_LOG "imc2.data" // UNKNOWN_DATA_LOG is where unrecognized packets are logged to. // I wrote handlers for all packets I know of, so this should only pick // up tests and possibly if anyone is creating new packets. #define UNKNOWN_DATA_LOG "IMC2_UNKNOWN" // Your MUD's URL is shared with other muds when building the mud list. // This you could also put this in your who reply. #define URL "http://www.darkwoodinc.com:3328/" // ANNOUNCE_LOG is where network announcements get logged to. // I suggest you keep this turned on. // These announcements seem to be about channels being created and // deleted, but may possibly have more. #define ANNOUNCE_LOG "IMC2_ANNOUNCEMENTS" // How many lines you want the backlog to be. #define BACKLOG_SIZE 20 // Minimum permission number for channel to be viewable on the web. #define BACKLOG_WEB_LEVEL 0 // If you use the web page with the mud list and channels and stuff, // this'll be the URL for it, up to the point where the arguments // are passed. #define HTML_LOCATION "http://www.darkwoodinc.com:3328/gateways/imc2?" // WHO_STR is the code that you want a who request to display. #define WHO_STR "/cmds/std/_who.c"->do_who()+URL+ \ "\ntelnet://www.darkwoodinc.com:3333\n" \ "______________________________________________________________________________" #include "code.h"