X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/b21e2cfed85b6615b6beee1912220638038a33b9..0f3e9cfc4b5d0f13085c975e10c0e6c4c8e5fbc3:/src/nickserv.h diff --git a/src/nickserv.h b/src/nickserv.h index 080ac80..e23b74a 100644 --- a/src/nickserv.h +++ b/src/nickserv.h @@ -1,7 +1,7 @@ /* nickserv.h - Nick/authentiction service * Copyright 2000-2004 srvx Development Team * - * This file is part of srvx. + * This file is part of x3. * * srvx is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,15 +38,19 @@ struct svccmd; #define HI_FLAG_NODELETE 0x00000080 #define HI_FLAG_NETWORK_HELPER 0x00000100 #define HI_FLAG_BOT 0x00000200 +#define HI_FLAG_AUTOHIDE 0x00000400 /* Flag characters for the above. First char is LSB, etc. */ -#define HANDLE_FLAGS "SphgscfnHb" +#define HANDLE_FLAGS "SphgscfnHbx" /* HI_STYLE_* go into handle_info.userlist_style */ -#define HI_STYLE_DEF 'd' -#define HI_STYLE_ZOOT 'Z' +#define HI_STYLE_NORMAL 'n' +#define HI_STYLE_CLEAN 'c' +#define HI_STYLE_ADVANCED 'a' #define HI_DEFAULT_FLAGS (HI_FLAG_MIRC_COLOR) -#define HI_DEFAULT_STYLE HI_STYLE_DEF + +/* This is overridden by conf file */ +#define HI_DEFAULT_STYLE HI_STYLE_NORMAL #define HANDLE_FLAGGED(hi, tok) ((hi)->flags & HI_FLAG_##tok) #define HANDLE_SET_FLAG(hi, tok) ((hi)->flags |= HI_FLAG_##tok) @@ -75,12 +79,19 @@ struct handle_cookie { char cookie[COOKIELEN+1]; }; +struct handle_note { + char setter[NICKSERV_HANDLE_LEN+1]; + time_t date; + char note[1]; +}; + struct handle_info { struct nick_info *nicks; struct string_list *masks; struct userNode *users; struct userData *channels; struct handle_cookie *cookie; + struct handle_note *note; struct language *language; char *email_addr; char *epithet; @@ -158,4 +169,6 @@ void reg_allowauth_func(allowauth_func_t func); typedef void (*failpw_func_t)(struct userNode *user, struct handle_info *handle); void reg_failpw_func(failpw_func_t func); +void send_func_list(struct userNode *user); + #endif