Save local Sone after auto-following.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 24 May 2011 03:51:10 +0000 (05:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 24 May 2011 03:51:10 +0000 (05:51 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 765b672..32a47f6 100644 (file)
@@ -933,6 +933,7 @@ public class Core implements IdentityListener, UpdateListener {
                                        for (Sone localSone : getLocalSones()) {
                                                if (localSone.getOptions().getBooleanOption("AutoFollow").get()) {
                                                        localSone.addFriend(sone.getId());
+                                                       saveSone(localSone);
                                                }
                                        }
                                }