muhstik- irc flooding solution |
git clone git://git.acid.vegas/muhstik.git |
Log | Files | Refs | Archive | README |
init.h (2261B)
1 /* Muhstik, Copyright (C) 2001-2002, Louis Bavoil <mulder@gmx.fr> */ 2 /* 2009-2011, Leon Kaiser <literalka@gnaa.eu> */ 3 /* */ 4 /* This program is free software; you can redistribute it and/or */ 5 /* modify it under the terms of the GNU Library General Public License */ 6 /* as published by the Free Software Foundation; either version 2 */ 7 /* of the License, or (at your option) any later version. */ 8 /* */ 9 /* This program is distributed in the hope that it will be useful, */ 10 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 11 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ 12 /* GNU Library General Public License for more details. */ 13 14 #ifndef INIT_H 15 #define INIT_H 16 17 #include "globals.h" 18 19 #define USERLISTS 4 20 typedef enum { 21 AOP, 22 JUPE, 23 PROT, 24 SHIT 25 } list_t; 26 27 #define PROXYS 5 28 typedef enum { 29 SOCKS4, 30 SOCKS5, 31 PROXY, 32 CISCO, 33 VHOST, 34 NOSPOOF 35 } proxy_t; 36 37 typedef struct { 38 int load; 39 int group; 40 int max_clones; 41 int wait_socks; 42 int rewind_socks; 43 int timeout; 44 int max_reco; 45 int wait_reco; 46 int no_restricted; 47 int scan; 48 int help; 49 int verbose; 50 int debug; 51 int nocolor; 52 int dalnet; 53 int use_wordlist; 54 int nick_length; 55 int ident_length; 56 int real_length; 57 int rejoin; 58 int multi_op; 59 int multi_kick; 60 int multi_deop; 61 int aggressive; 62 int peace; 63 int repeat; 64 int notice; 65 /* int max_conns; */ 66 67 char *motd; 68 char *batch; 69 70 char *g[PROXYS][MAX_GROUPS]; 71 FILE *h[PROXYS][MAX_GROUPS]; 72 FILE *s[PROXYS][MAX_GROUPS]; 73 FILE *direct[2]; 74 75 char *aop[MAX_AOPS]; 76 char *jupe[MAX_JUPES]; 77 char *juping[MAX_JUPES]; 78 char *prot[MAX_PROTS]; 79 char *shit[MAX_SHITS]; 80 char *userlist[USERLISTS]; 81 82 char *nicks[MAX_NICKS]; 83 char *idents[MAX_IDENTS]; 84 char *names[MAX_NAMES]; 85 } config_t; 86 87 void init_options (char **argv); 88 void check_options(); 89 void init_threads(); 90 void init_hostname(); 91 92 #endif