src/opserv.c (cmd_whois): Test no-idle mode.
src/proto-p10.c (irc_user): Check for no-idle mode.
(mod_usermode): Check for +I flag.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-66
# arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
#
+2006-10-27 00:47:30 GMT Michael Poole <mdpoole@troilus.org> patch-66
+
+ Summary:
+ Support +I while we're adding modes (part 2) - the missing files.
+ Revision:
+ srvx--devo--1.3--patch-66
+
+ src/opserv.c (cmd_whois): Test no-idle mode.
+
+ src/proto-p10.c (irc_user): Check for no-idle mode.
+ (mod_usermode): Check for +I flag.
+
+ modified files:
+ ChangeLog src/hash.h src/opserv.c
+
+
2006-10-27 00:44:35 GMT Michael Poole <mdpoole@troilus.org> patch-65
Summary:
#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_DUMMY 0x10000 /* user is not announced to other servers */
+#define FLAGS_NOIDLE 0x20000 /* hide idle time in whois +I */
#define IsOper(x) ((x)->modes & FLAGS_OPER)
#define IsService(x) ((x)->modes & FLAGS_SERVICE)
#define IsReggedNick(x) ((x)->modes & FLAGS_REGNICK)
#define IsRegistering(x) ((x)->modes & FLAGS_REGISTERING)
#define IsDummy(x) ((x)->modes & FLAGS_DUMMY)
+#define IsNoIdle(x) ((x)->modes & FLAGS_NOIDLE)
#define IsFakeHost(x) ((x)->fakehost[0] != '\0')
#define IsLocal(x) ((x)->uplink == self)
if (IsDeaf(target)) buffer[bpos++] = 'd';
if (IsNoChan(target)) buffer[bpos++] = 'n';
if (IsHiddenHost(target)) buffer[bpos++] = 'x';
+ if (IsNoIdle(target)) buffer[bpos++] = 'I';
if (IsGagged(target)) buffer_cat(" (gagged)");
if (IsRegistering(target)) buffer_cat(" (registered account)");
buffer[bpos] = 0;