/* nickserv.h - Nick/authentiction service
* Copyright 2000-2004 srvx Development Team
*
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of srvx.
+ *
+ * srvx 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. Important limitations are
- * listed in the COPYING file that accompanies this software.
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, email srvx-maintainers@srvx.net.
+ * along with srvx; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
#ifndef _nickserv_h
#define HANDLE_FLAGS "SphgscfnHb"
/* HI_STYLE_* go into handle_info.userlist_style */
-#define HI_STYLE_DEF 'd'
-#define HI_STYLE_ZOOT 'Z'
+#define HI_STYLE_DEF 'd'
+#define HI_STYLE_ZOOT 'Z'
#define HI_DEFAULT_FLAGS (HI_FLAG_MIRC_COLOR)
#define HI_DEFAULT_STYLE HI_STYLE_DEF
struct handle_info *hi;
char *data;
enum cookie_type type;
- time_t expires;
+ unsigned long expires;
char cookie[COOKIELEN+1];
};
+struct handle_note {
+ struct handle_note *next;
+ unsigned long expires;
+ unsigned long set;
+ int id;
+ char setter[NICKSERV_HANDLE_LEN+1];
+ 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 *notes;
struct language *language;
char *email_addr;
char *epithet;
char *infoline;
char *handle;
+ char *fakehost;
#ifdef WITH_PROTOCOL_BAHAMUT
unsigned long id;
#endif
- time_t registered;
- time_t lastseen;
+ unsigned long registered;
+ unsigned long lastseen;
+ int karma;
unsigned short flags;
unsigned short opserv_level;
unsigned short screen_width;
unsigned short table_width;
unsigned char userlist_style;
- unsigned char announcements;
unsigned char maxlogins;
char passwd[MD5_CRYPT_LENGTH+1];
char last_quit_host[USERLEN+HOSTLEN+2];