Add all Sone-specific options when creating a Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 11 Apr 2011 11:50:49 +0000 (13:50 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 11 Apr 2011 11:50:49 +0000 (13:50 +0200)
This fixes #144.

src/main/java/net/pterodactylus/sone/core/Core.java

index 1fe843e..e18fabc 100644 (file)
@@ -876,6 +876,8 @@ public class Core implements IdentityListener, UpdateListener {
                        return null;
                }
                Sone sone = addLocalSone(ownIdentity);
+               sone.getOptions().addBooleanOption("AutoFollow", new DefaultOption<Boolean>(false));
+               saveSone(sone);
                return sone;
        }