# HG changeset patch # User Paul Aurich # Date 1246676890 0 # Node ID 77dfed554b2b9eccc2dc684e4ef9ae6e8ee371c8 # Parent 5afc3577b8cda0fa44e6ca7415c826a174a9b7f2 Clarify that Purple::Prefs::add_none() really is necessary diff -r 5afc3577b8cd -r 77dfed554b2b doc/PERL-HOWTO.dox --- a/doc/PERL-HOWTO.dox Fri Jul 03 05:27:32 2009 +0000 +++ b/doc/PERL-HOWTO.dox Sat Jul 04 03:08:10 2009 +0000 @@ -323,9 +323,10 @@ sub plugin_load { my $plugin = shift; + # This is necessary to create each level in the preferences tree. + Purple::Prefs::add_none("/plugins/core/perl_test"); # Here we are adding a set of preferences # The second argument is the default value for the preference. - Purple::Prefs::add_none("/plugins/core/perl_test"); Purple::Prefs::add_bool("/plugins/core/perl_test/bool", 1); Purple::Prefs::add_string("/plugins/core/perl_test/choice_str", "ch1"); Purple::Prefs::add_int("/plugins/core/perl_test/choice_int", 1);