This commit is contained in:
2023-12-22 22:53:54 -05:00
commit 2821b7e9a1
45 changed files with 8425 additions and 0 deletions

49
myfile.h Normal file
View 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();