*
* x3 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* x3 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
#define FLAGS_LOCOP 0x0002 /* Local operator +o */
#define FLAGS_INVISIBLE 0x0004 /* invisible +i */
#define FLAGS_WALLOP 0x0008 /* receives wallops +w */
#define FLAGS_LOCOP 0x0002 /* Local operator +o */
#define FLAGS_INVISIBLE 0x0004 /* invisible +i */
#define FLAGS_WALLOP 0x0008 /* receives wallops +w */
#define FLAGS_DEAF 0x0020 /* deaf +d */
#define FLAGS_SERVICE 0x0040 /* cannot be kicked, killed or deoped +k */
#define FLAGS_GLOBAL 0x0080 /* receives global messages +g */
#define FLAGS_DEAF 0x0020 /* deaf +d */
#define FLAGS_SERVICE 0x0040 /* cannot be kicked, killed or deoped +k */
#define FLAGS_GLOBAL 0x0080 /* receives global messages +g */
#define FLAGS_PERSISTENT 0x0200 /* for reserved nicks, this isn't just one-shot */
#define FLAGS_GAGGED 0x0400 /* for gagged users */
#define FLAGS_AWAY 0x0800 /* for away users */
#define FLAGS_PERSISTENT 0x0200 /* for reserved nicks, this isn't just one-shot */
#define FLAGS_GAGGED 0x0400 /* for gagged users */
#define FLAGS_AWAY 0x0800 /* for away users */
#define FLAGS_HIDDEN_HOST 0x2000 /* user's host is masked by their account */
#define FLAGS_REGNICK 0x4000 /* user owns their current nick */
#define FLAGS_REGISTERING 0x8000 /* user has issued account register command, is waiting for email cookie */
#define FLAGS_HIDDEN_HOST 0x2000 /* user's host is masked by their account */
#define FLAGS_REGNICK 0x4000 /* user owns their current nick */
#define FLAGS_REGISTERING 0x8000 /* user has issued account register command, is waiting for email cookie */
#define IsOper(x) ((x)->modes & FLAGS_OPER)
#define IsService(x) ((x)->modes & FLAGS_SERVICE)
#define IsDeaf(x) ((x)->modes & FLAGS_DEAF)
#define IsInvisible(x) ((x)->modes & FLAGS_INVISIBLE)
#define IsGlobal(x) ((x)->modes & FLAGS_GLOBAL)
#define IsOper(x) ((x)->modes & FLAGS_OPER)
#define IsService(x) ((x)->modes & FLAGS_SERVICE)
#define IsDeaf(x) ((x)->modes & FLAGS_DEAF)
#define IsInvisible(x) ((x)->modes & FLAGS_INVISIBLE)
#define IsGlobal(x) ((x)->modes & FLAGS_GLOBAL)
#define IsWallOp(x) ((x)->modes & FLAGS_WALLOP)
#define IsServNotice(x) ((x)->modes & FLAGS_SERVNOTICE)
#define IsWallOp(x) ((x)->modes & FLAGS_WALLOP)
#define IsServNotice(x) ((x)->modes & FLAGS_SERVNOTICE)
#define IsGagged(x) ((x)->modes & FLAGS_GAGGED)
#define IsPersistent(x) ((x)->modes & FLAGS_PERSISTENT)
#define IsAway(x) ((x)->modes & FLAGS_AWAY)
#define IsGagged(x) ((x)->modes & FLAGS_GAGGED)
#define IsPersistent(x) ((x)->modes & FLAGS_PERSISTENT)
#define IsAway(x) ((x)->modes & FLAGS_AWAY)
#define IsHiddenHost(x) ((x)->modes & FLAGS_HIDDEN_HOST)
#define IsReggedNick(x) ((x)->modes & FLAGS_REGNICK)
#define IsRegistering(x) ((x)->modes & FLAGS_REGISTERING)
#define IsHiddenHost(x) ((x)->modes & FLAGS_HIDDEN_HOST)
#define IsReggedNick(x) ((x)->modes & FLAGS_REGNICK)
#define IsRegistering(x) ((x)->modes & FLAGS_REGISTERING)
unsigned int dead : 1; /* Is user waiting to be recycled? */
irc_in_addr_t ip; /* User's IP address */
long modes; /* user flags +isw etc... */
unsigned int dead : 1; /* Is user waiting to be recycled? */
irc_in_addr_t ip; /* User's IP address */
long modes; /* user flags +isw etc... */
time_t timestamp; /* Time of last nick change */
struct server *uplink; /* Server that user is connected to */
time_t timestamp; /* Time of last nick change */
struct server *uplink; /* Server that user is connected to */