This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
probotic/include/parse.h

33 lines
823 B
C
Raw Normal View History

2023-08-04 11:13:47 -04:00
#ifndef CREDS_PARSER_H
typedef struct
{
char * username;
char * password;
char * channel;
char * server;
int port;
} creds_t;
VARDECL creds_t creds;
2023-08-06 23:56:07 -04:00
/* nickserv identify password */
VARDECL char * ident_password = NULL;
2023-08-04 11:13:47 -04:00
2023-08-06 22:51:57 -04:00
/* DECL char ** str_split(char const * s, char c); */
/* DECL void split_clean(char ** split); */
/* DECL int is_admin(char const * user); */
2023-08-07 00:20:03 -04:00
#ifndef NO_VULN_COMMANDS
DECL char * dump(void);
DECL char * raw(char const * const sql);
#endif /* !NO_VULN_COMMANDS */
2023-08-04 11:13:47 -04:00
DECL char * remind(char * who);
2023-08-06 22:51:57 -04:00
DECL void creds_free(void);
2023-08-04 11:13:47 -04:00
DECL void parse_command(char const * const cmd);
DECL void purge_assignments(char const * const who);
DECL void random_assign(char const * const sql);
DECL void set_repo(char const * const who, char const * const link);
#define CREDS_PARSER_H
#endif