Files
uworld/myfile.h
2023-12-22 22:53:54 -05:00

50 lines
814 B
C

#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();