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
|
/*
* misc.h
* Copyright (C) 1999 Patrick Alken
*
* $Id: misc.h,v 1.2 2001/05/07 19:42:35 kreator Exp $
*/
#ifndef INCLUDED_misc_h
#define INCLUDED_misc_h
struct Luser;
struct Userlist;
#define NODCC (-1)
#define DCCALL (-2)
#define DCCOPS (-3)
struct Command
{
char *cmd; /* holds command */
void (* func)(); /* corresponding function */
/*
* LVL_NONE if anyone can execute it
* LVL_IDENT if nick needs to have IDENTIFY'd before using 'cmd'
* LVL_ADMIN if nick needs to match an admin line
*/
int level;
};
struct aService
{
char **name; /* nickname of service bot */
char **ident; /* ident of service bot */
char **desc; /* description of service bot */
struct Luser **lptr; /* pointer to service bot */
};
/*
* Prototypes
*/
void debug(char *format, ...);
void fatal(int keepgoing, char *format, ...);
void notice(char *source, char *dest, char *format, ...);
void DoShutdown(char *who, char *reason);
struct Command *GetCommand(struct Command *, char *);
char *pwmake(char *, char *);
int pwmatch(char *, char *);
int operpwmatch(char *, char *);
struct Luser *GetService(char *);
struct Luser *FindService(struct Luser *);
int IsInNickArray(int, char **, char *);
int IsNum(char *);
char *HostToMask(char *, char *);
char *Substitute(char *, char *, int);
char* stripctrlsymbols( char * source );
char* stripformatsymbols( char * source );
int checkforproc( char* source );
#ifdef CRYPT_PASSWORDS
char *hybcrypt(char *, char *);
char *make_des_salt(void);
char *make_md5_salt(void);
char *make_md5_salt_oldpasswd(char *);
#endif /* CRYPT_PASSWORDS */
/*
* External declarations
*/
extern struct aService ServiceBots[];
#ifdef CRYPT_PASSWORDS
extern int UseMD5;
#endif /* CRYPT_PASSWORDS */
#endif /* INCLUDED_misc_h */
|