Support +I while we're adding modes (part 2) - the missing files.
authorMichael Poole <mdpoole@troilus.org>
Fri, 27 Oct 2006 00:47:30 +0000 (00:47 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 27 Oct 2006 00:47:30 +0000 (00:47 +0000)
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

ChangeLog
src/hash.h
src/opserv.c

index 8f3fe4f028aafbbf9da0e23c30684ee10d74c26b..c5441b6fd5caed067f5d9856f5c47fd2c3d1c1fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,22 @@
 # 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:
index 84bb8a3787ea3e3236b3a67cb49175063a6969f1..4147aaed6c9b126c9c584aef781f1062d45637fb 100644 (file)
@@ -60,6 +60,7 @@
 #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)
@@ -76,6 +77,7 @@
 #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)
 
index cd384a600ef40f8c3a35c5c2876f8527febc2a24..a5ffb401ef327ead6d214a041d66b3ca2e61ec05 100644 (file)
@@ -1189,6 +1189,7 @@ static MODCMD_FUNC(cmd_whois)
        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;