Author: xor
Date: 2008-11-15 18:21:30 +0000 (Sat, 15 Nov 2008)
New Revision: 23604

Modified:
   trunk/plugins/WoT/Identity.java
Log:
Doh.

Modified: trunk/plugins/WoT/Identity.java
===================================================================
--- trunk/plugins/WoT/Identity.java     2008-11-15 18:07:14 UTC (rev 23603)
+++ trunk/plugins/WoT/Identity.java     2008-11-15 18:21:30 UTC (rev 23604)
@@ -624,7 +624,7 @@
         * @throws InvalidParameterException if the given FreenetURI is neither 
a SSK nor a USK
         */
        protected synchronized void setRequestURI(FreenetURI newRequestURI) 
throws InvalidParameterException {
-               if(requestURI != null && 
newRequestURI.equalsKeypair(requestURI))
+               if(requestURI != null && 
!newRequestURI.equalsKeypair(requestURI))
                        throw new InvalidParameterException("Cannot change the 
request URI of an existing identity");
                
                if(newRequestURI.getKeyType().equals("SSK")) newRequestURI = 
newRequestURI.setKeyType("USK");

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to