init
This commit is contained in:
49
myfile.h
Normal file
49
myfile.h
Normal file
@@ -0,0 +1,49 @@
|
||||
#define HOSTHASH 4000
|
||||
#ifdef __MYFILE__
|
||||
struct aHosthash *host_hashid=NULL;
|
||||
#else
|
||||
extern struct aHosthash *host_hashid;
|
||||
#endif
|
||||
|
||||
struct aGline {
|
||||
char *mask;
|
||||
char *nick;
|
||||
time_t time;
|
||||
char *comment;
|
||||
};
|
||||
|
||||
struct aUser {
|
||||
struct aUser *next;
|
||||
struct aChan *chanlist;
|
||||
int level;
|
||||
int numbans;
|
||||
int numkicks;
|
||||
char mask[150];
|
||||
char nick[150];
|
||||
time_t timeout;
|
||||
int vrfy;
|
||||
char passwd[10];
|
||||
char comment[512];
|
||||
};
|
||||
|
||||
struct aHost {
|
||||
struct aHost *next;
|
||||
char *hostname;
|
||||
int count;
|
||||
};
|
||||
|
||||
struct aHosthash {
|
||||
struct aHost *host[HOSTHASH];
|
||||
};
|
||||
|
||||
struct aChan {
|
||||
struct aChan *next;
|
||||
char name[255];
|
||||
};
|
||||
|
||||
struct aUser *chklevel(char *fromhost);
|
||||
struct aUser *vrfy_oper(char *fromhost,char *passwd);
|
||||
char *my_strcpy(char *inp);
|
||||
int my_strfree(char *inp);
|
||||
struct aHosthash *new_hosthash();
|
||||
|
||||
Reference in New Issue
Block a user