[dw-free] Change console-only "set" commands to an Advanced Options tab
[commit: http://hg.dwscoalition.org/dw-free/rev/3f4ce4b2ddd9]
http://bugs.dwscoalition.org/show_bug.cgi?id=19
Remove trusted_s1 setter.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=19
Remove trusted_s1 setter.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/ljhooks.pl
-------------------------------------------------------------------------------- diff -r beb065b1b736 -r 3f4ce4b2ddd9 cgi-bin/ljhooks.pl --- a/cgi-bin/ljhooks.pl Sun Jul 05 16:38:04 2009 +0000 +++ b/cgi-bin/ljhooks.pl Sun Jul 05 16:40:08 2009 +0000 @@ -187,27 +187,6 @@ register_setter("disable_quickreply", su return 1; }); -register_setter("trusted_s1", sub { - my ($u, $key, $value, $err) = @_; - - unless ($value =~ /^(\d+,?)+$/) { - $$err = "Illegal value. Must be a comma separated list of style ids"; - return 0; - } - - # guard against accidentally nuking an existing value. - my $propval = $u->prop("trusted_s1"); - if ($value && $propval) { - $$err = "You already have this property set to '$propval'. To overwrite this value,\n" . - "first clear the property ('set trusted_s1 0'). Then, set the new value or store\n". - "multiple values (with 'set trusted_s1 $propval,$value')."; - return 0; - } - - $u->set_prop("trusted_s1", $value); - return 1; -}); - register_setter("icbm", sub { my ($u, $key, $value, $err) = @_; my $loc = eval { LJ::Location->new(coords => $value); }; --------------------------------------------------------------------------------