]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/hash.h
Applied http://contagion.quarantined.net/diffs/sethost.diff
[irc/evilnet/x3.git] / src / hash.h
index d10c35ea9467b3fc794213d9298e93843d01fed7..6048108a1c1e7f0a9066f568d5b61515055cb0c0 100644 (file)
 #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_HELPER           0x0100 /* (network?) helper +h */
+
+// sethost - reed/apples
+// #define FLAGS_HELPER                0x0100 /* (network?) helper +h */
+#define FLAGS_SETHOST          0x0100 /* sethost +h */
+
 #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 IsGlobal(x)             ((x)->modes & FLAGS_GLOBAL)
 #define IsWallOp(x)             ((x)->modes & FLAGS_WALLOP)
 #define IsServNotice(x)         ((x)->modes & FLAGS_SERVNOTICE)
-#define IsHelperIrcu(x)         ((x)->modes & FLAGS_HELPER)
+
+// sethost - reed/apples
+// #define IsHelperIrcu(x)         ((x)->modes & FLAGS_HELPER)
+#define IsSetHost(x)           ((x)->modes & FLAGS_SETHOST)
+
 #define IsGagged(x)             ((x)->modes & FLAGS_GAGGED)
 #define IsPersistent(x)         ((x)->modes & FLAGS_PERSISTENT) 
 #define IsAway(x)               ((x)->modes & FLAGS_AWAY)
@@ -111,6 +119,9 @@ struct userNode {
     struct in_addr ip;            /* User's IP address */
     long modes;                   /* user flags +isw etc... */
 
+    // sethost - reed/apples
+    char sethost[USERLEN + HOSTLEN + 2]; /* 1 for '\0' and 1 for @ = 2 */
+
     time_t timestamp;             /* Time of last nick change */
     struct server *uplink;        /* Server that user is connected to */
     struct modeList channels;     /* Vector of channels user is in */