← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2296: Support hidden users as per the ADC ext spec

 

------------------------------------------------------------
revno: 2296
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-11-18 20:35:18 +0100
message:
  Support hidden users as per the ADC ext spec
modified:
  changelog.txt
  dcpp/User.h


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'changelog.txt'
--- changelog.txt	2010-11-13 17:50:36 +0000
+++ changelog.txt	2010-11-18 19:35:18 +0000
@@ -31,6 +31,7 @@
 * Fix a random crash when reconnecting hubs and being unlucky (poy)
 * Added notice about the original C implementation of Tiger (you must include this in mods!) (ullner)
 * Add a menu to change the group of a fav hub more easily (poy)
+* [ADC] Support hidden users as per the ADC ext spec (poy)
 
 -- 0.770 2010-07-05 --
 * [L#550300] Catch more potential file corruptions (thanks bigmuscle)

=== modified file 'dcpp/User.h'
--- dcpp/User.h	2010-07-10 14:36:48 +0000
+++ dcpp/User.h	2010-11-18 19:35:18 +0000
@@ -111,7 +111,8 @@
 		CT_OP = 4,
 		CT_SU = 8,
 		CT_OWNER = 16,
-		CT_HUB = 32
+		CT_HUB = 32,
+		CT_HIDDEN = 64
 	};
 
 	Identity() : sid(0) { }
@@ -144,7 +145,7 @@
 	bool isHub() const { return isClientType(CT_HUB) || isSet("HU"); }
 	bool isOp() const { return isClientType(CT_OP) || isClientType(CT_SU) || isClientType(CT_OWNER) || isSet("OP"); }
 	bool isRegistered() const { return isClientType(CT_REGGED) || isSet("RG"); }
-	bool isHidden() const { return isSet("HI"); }
+	bool isHidden() const { return isClientType(CT_HIDDEN) || isSet("HI"); }
 	bool isBot() const { return isClientType(CT_BOT) || isSet("BO"); }
 	bool isAway() const { return isSet("AW"); }
 	bool isTcpActive() const;