144 lines
3.5 KiB
C
Executable File
144 lines
3.5 KiB
C
Executable File
#include <time.h>
|
|
/* USE_TSC enables the code that handles the TSC processing
|
|
*/
|
|
#define USE_TSC
|
|
#define GLINEFILE "Gline.file"
|
|
#define OPERCHANFILE "OperChan.file"
|
|
#define KILLCHANFILE "KillChan.file"
|
|
#define MAXGLINES 500
|
|
#define CHANSUSPENDFILE "NoChan.file"
|
|
#define SUSPENDFILE "NoOper.file"
|
|
#define USE_DCC
|
|
#define CMDHISTORY 15
|
|
#define MAXSUSPENDOPER 20
|
|
#define MAXCLIENTS 200
|
|
#define EGLINEFILE "NoGline.file"
|
|
#define AGLINEFILE "AGLhosts.file"
|
|
#define MHOSTFILE "Mhosts.file"
|
|
#define SHOSTFILE "Shosts.file"
|
|
#define MAXNOGLINES 100
|
|
#define MAXMHOST 200
|
|
#define MAXGLINEHOST 100
|
|
#define JUPE_CHANSERVICE
|
|
#define JUPE_BUGS
|
|
#define FLUDFILE "FLUD.log"
|
|
#define VERSION "Uworld2 -- the second calling -- v2.0+wild"
|
|
#define MYSERVER "198.245.27.2"
|
|
/*#define UPLINK "okc.ok.us.undernet.org"/* */
|
|
#define MYHOST "confusion.decade.net" /* */
|
|
#define SERVERNAME "Uworld.undernet.org"
|
|
#define SERVERINFO "Undernet Special Services Central Cordinator"
|
|
#define BOTNAME "Uworld"
|
|
#define BOTINFO "Uworld Version 2 :The channel saving bot"
|
|
#define DEFAULTPORT 4400
|
|
#define PASSWORD "hacker"
|
|
#define USERFILE "user.file"
|
|
#define PROTFILE "uworld.conf"
|
|
#define LOGFILE "Uworld.log"
|
|
#define FLOODFILE "Flood.log"
|
|
#define KILLFILE "kill.log"
|
|
#define HELPFILE "uworldhelp"
|
|
#define HELPBOT "UShelper"
|
|
#define OPERCHANNEL "uworld.floods"
|
|
#define MAXOPERCHAN 30
|
|
#define WASTEDUMP
|
|
|
|
#ifdef USE_DCC
|
|
#define S_ACTIVE 1
|
|
#define S_FREE 0
|
|
#define S_CLOSING -1
|
|
#endif
|
|
|
|
/*#define CLONE_REPORT "define this to do clonebot processing" /* */
|
|
|
|
/* REPORT_BADNICK -- reports user nicknames that are possible bots
|
|
** or clones.
|
|
*/
|
|
#undef REPORT_BADNICK
|
|
|
|
#define HELPBOTINFO "helpbot undernet.org Uworld.undernet.org :IRC HELP /msg <botname> help <COMMAND> "
|
|
#define USHELP "Help_US"
|
|
#define USHELPINFO "helpbot undernet.org Uworld.undernet.org :/msg <botname> <command>"
|
|
#define IRCHELP "ircIIhelp"
|
|
#define NICKSERV "NickServ"
|
|
#define NICKSERVINFO "Nickserv undernet.org Uworld.undernet.org :The nick machine"
|
|
#define CHANSVR "ChanSvr"
|
|
#define CHANSVRINFO "chansvr undernet.org Uworld.undernet.org :The channel saving bot"
|
|
#define HELPPATH "HELP"
|
|
|
|
|
|
#define DEFAULT_LEVEL 0
|
|
#define DEBUG 0
|
|
#define NOHELP 0 /* undefine this if you want the help services online */
|
|
|
|
#undef MAIL_GLINE
|
|
#define TSC_CHAN "Uworld.clones"
|
|
#define OPEROK -2
|
|
#define GLINE -5
|
|
#define RGLINE -6
|
|
#define ASSHOLE -15
|
|
#define KILL -20
|
|
#define KTEL -10
|
|
#define AUTO_BAN -25
|
|
#define CLEARCHAN 10
|
|
#define CLEAROPS 11
|
|
#define CLEARBANS 12
|
|
#define CLEARMODE 13
|
|
#define KILTEL 15
|
|
#define OPCOM 20
|
|
#define SCAN 21
|
|
#define AUTO_BAN_OPER 25
|
|
#define AUTO_UNBAN_OPER 26
|
|
#define AUTO_GLINE 27
|
|
#define AUTO_UNGLINE 28
|
|
#define SHOW_HOSTS 29
|
|
#define OPER 100
|
|
#define NOOPER -4
|
|
#define MAXUSERS 4000
|
|
#define TIMER 768845314
|
|
#define MINCHARS 6
|
|
#define MAXBUFSIZE 4096
|
|
/*#define MAXBUFSIZE 1024
|
|
**#define INPUTBUFFERSIZE 200000
|
|
**#define INPUTBUFFERSIZE 200000
|
|
*/
|
|
|
|
#define MAXFLOODHISTORY 20
|
|
#define MSGFLOOD 10
|
|
#define FLOODTIME 60
|
|
#undef FLOOD_BYHOST
|
|
|
|
struct aFloodProtect {
|
|
struct aFloodProtect *next;
|
|
struct aFloodProtect *prev;
|
|
char *hostname;
|
|
char *cmd;
|
|
int msgs;
|
|
int glined;
|
|
unsigned long reset;
|
|
};
|
|
|
|
#ifdef USE_DCC
|
|
struct aDccClient {
|
|
int fd;
|
|
int status;
|
|
char name[10];
|
|
char hostname[100];
|
|
char passwd[10];
|
|
time_t lasttime;
|
|
int umode;
|
|
};
|
|
#endif
|
|
|
|
|
|
#define DCC_ANY (1 << 0)
|
|
#define DCC_WALLOPS (1 << 1)
|
|
#define DCC_GLN (1 << 2)
|
|
#define DCC_TSC (1 << 3)
|
|
#define DCC_COMMAND (1 << 4)
|
|
#define DCC_MMG (1 << 5)
|
|
#define DCC_WALL (1 << 6)
|
|
#define USERMODES "catgwml"
|
|
|
|
#define DCC_DEFAULT (DCC_ANY | DCC_WALLOPS)
|