1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
|
#ifndef _mystructs_h_
#define _mystructs_h_
/*
* Structures for my use
*
* $Id: mystructs.h,v 1.15 2009-12-21 14:38:30 f Exp $
*/
/* don't change!! */
#define mybufsize 1024
/* don't change!! */
#define HASHTABLESIZE 31
/* change to number of autoreply nicks */
#define AUTOREPLYSIZE 5
/* don't change!! */
#ifdef WANTANSI
#define NUMCMDCOLORS_ 26
#if defined(CELECOSM) && defined(OPERVISION)
#define NUMCMDCOLORS (NUMCMDCOLORS_ + 2)
#elif defined(CELECOSM) || defined(OPERVISION)
#define NUMCMDCOLORS (NUMCMDCOLORS_ + 1)
#else /* CELECOSM || OPERVISION */
#define NUMCMDCOLORS (NUMCMDCOLORS_)
#endif /* CELECOSM && OPERVISION */
#define SZNUMCOLORS 22
#endif /* WANTANSI */
/* for FiSH encryption */
#define SZ_ENCR_PRIVMSG 0
#define SZ_ENCR_PUBLIC 1
#define SZ_ENCR_OTHER -1
/* some defines for friends list */
#define FLINVITE 1
#define FLCHOPS 2
#define FLOP 4
#define FLAUTOOP 8
#define FLUNBAN 16
#define FLPROT 32
#define FLCDCC 64
#define FLGOD 128
#define FLVOICE 256
#define FLJOIN 512
#define FLNOFLOOD 1024
#define FLINSTANT 2048
#define FLWHOWAS 4096
#define FLHOP 8192
#define FLALL (FLINVITE | FLCHOPS | FLOP | FLAUTOOP | FLUNBAN | FLPROT | FLCDCC | FLGOD | FLVOICE | FLJOIN | FLNOFLOOD | FLINSTANT | FLHOP)
/* some defines for shit list */
#define SLKICK 1
#define SLBAN 2
#define SLIGNORE 4
#define SLPERMBAN 8
#define SLDEOP 16
#define SLTIMEDBAN 32
/* helper macro */
#define EMPTY_STR(x) (x ? x : empty_string)
struct friends {
struct friends *next;
char *userhost;
char *channels;
char *passwd;
int privs;
int number;
};
struct autobankicks {
struct autobankicks *next;
char *userhost;
char *reason;
char *channels;
int shit;
};
struct list {
struct list *next;
char *nick;
char *userhost;
};
struct words {
struct words *next;
char *channels;
char *word;
char *reason;
int bantime;
int ban;
};
struct nicks {
struct nicks *next;
char *nick;
};
struct wholeftch {
struct wholeftch *next;
char *channel;
struct list *nicklist;
};
struct wholeftstr {
struct wholeftstr *next;
char *splitserver;
int print;
int count;
int total;
time_t time;
struct wholeftch *channels;
};
struct splitstr {
struct splitstr *next;
char *servers;
};
struct urlstr {
struct urlstr *next;
char *urls;
char *source;
};
struct mapstr {
struct mapstr *next;
char *server;
char *uplink;
int distance;
};
struct bans {
struct bans *next;
int exception;
char *ban;
char *who;
time_t when;
};
struct spingstr {
struct spingstr *next;
char *servername;
long sec;
long usec;
};
struct encrstr {
struct encrstr *next;
char *user;
char *key;
int type; /* 0 = SZ crypto, 2 = FiSH */
};
struct channels {
struct channels *next;
char *channel;
};
#ifdef WANTANSI
struct colorstr {
char *color1;
char *color2;
char *color3;
char *color4;
char *color5;
char *color6;
};
#endif
#endif /* _mystructs_h_ */
|