X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/ec311f39148004a0a43ce45371bd02c61f19f886..acb6d53d17786553d48c54b74cf2b7df3e362227:/src/nickserv.h diff --git a/src/nickserv.h b/src/nickserv.h index 155fdf2..84b4ecf 100644 --- a/src/nickserv.h +++ b/src/nickserv.h @@ -3,7 +3,7 @@ * * This file is part of x3. * - * srvx is free software; you can redistribute it and/or modify + * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. @@ -39,6 +39,7 @@ struct svccmd; #define HI_FLAG_NETWORK_HELPER 0x00000100 #define HI_FLAG_BOT 0x00000200 #define HI_FLAG_AUTOHIDE 0x00000400 +#define HI_FLAG_ADVANCED 0x00000800 /* Flag characters for the above. First char is LSB, etc. */ #define HANDLE_FLAGS "SphgscfnHbx" @@ -46,6 +47,7 @@ struct svccmd; #define HI_STYLE_NORMAL 'n' #define HI_STYLE_CLEAN 'c' #define HI_STYLE_ADVANCED 'a' +#define HI_STYLE_CLASSIC 'k' #define HI_DEFAULT_FLAGS (HI_FLAG_MIRC_COLOR) @@ -88,6 +90,7 @@ struct handle_note { struct handle_info { struct nick_info *nicks; struct string_list *masks; + struct string_list *ignores; struct userNode *users; struct userData *channels; struct handle_cookie *cookie; @@ -139,6 +142,7 @@ int nickserv_modify_handle_flags(struct userNode *user, struct userNode *bot, co int oper_has_access(struct userNode *user, struct userNode *bot, unsigned int min_level, unsigned int quiet); void nickserv_show_oper_accounts(struct userNode *user, struct svccmd *cmd); +struct handle_info *get_victim_oper(struct userNode *user, const char *target); struct handle_info *loc_auth(char *handle, char *password); typedef void (*user_mode_func_t)(struct userNode *user, const char *mode_change);